Re: [PHP-DB] problem with insert query

2003-06-07 Thread Becoming Digital
Try this. I made some minor syntax changes and added some error reporting. While it may not fix things, it might help you figure out what's wrong. ? $mails=file(mails.txt); $number_of_mails = count($mails); for ($i=0; $i$number_of_mails; $i++) { $link = @ mysql_connect(localhost) or

Re: [PHP-DB] problem with insert query

2003-06-07 Thread Jeff Shapiro
It seems to me that this code will not provide useful information: if ($result) echo mysql_affected_rows(). affected.; If the insert was successful, it will always say 1 affected. Since you are only inserting one row at a time. On Sat, 07 Jun 2003 08:49:15 -0400, Becoming Digital wrote: