Discussion: double insert
Afficher un message
Vieux 26/09/2007, 20h58   #7
Almaleh
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: double insert

Après mûre réflexion, J.O. Aho a écrit :
> Almaleh wrote:
>> I use php/mysql for several years, and there, an error without explanation.
>> The PHP script below inserts an record two times, the same two times.
>> Why ? Any idea ?
>> include ('connecte.csv');
>> $link = mysql_connect($sql,$user,$pwd) or die("ERROR");
>> mysql_select_db($db,$link);
>> mysql_query("insert into listescouts (categorie,nom) values
>> ('test','essai')",$link);
>> mysql_close($link);

>
>
> The script most likely is called twice.

I don't think so because there is only a mysql_query instruction. What
do you think ,
Thanks
Francois


  Réponse avec citation
 
Page generated in 1,67825 seconds with 9 queries