Thread: double insert
View Single Post

   
  #4 (permalink)  
Old 02-28-2008, 10:27 AM
J.O. Aho
 
Posts: n/a
Default Re: double insert

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.

--

//Aho
Reply With Quote