Re: [PHP] Error codes from 'mysql_error()'

2001-03-08 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Dennis Gearon) wrote: > I do an insert using phpadmin, and i get back the error message (or > maybe it's a warning?) The insert is of a duplicate on a unique field. I > expected an error, but when I do mysql_error() or mysql_errno(), nothing > c

Re: [PHP] Error codes from 'mysql_error()'

2001-03-08 Thread Aaron Tuller
mysql_query($sql) or die("there was an error: ".mysql_error()); -aaron At 3:16 PM -0800 3/8/01, Dennis Gearon wrote: >I do an insert using phpadmin, and i get back the error message (or >maybe it's a warning?) The insert is of a duplicate on a unique field. I >expected an error, but when I do my

[PHP] Error codes from 'mysql_error()'

2001-03-08 Thread Dennis Gearon
I do an insert using phpadmin, and i get back the error message (or maybe it's a warning?) The insert is of a duplicate on a unique field. I expected an error, but when I do mysql_error() or mysql_errno(), nothing comes back(and I do it the next line in the script). the 'mysql_query($sql, $link)'