Page 1 of 1

MySQL Query Error Result

Posted: Mon Aug 14, 2006 1:59 pm
by r_barlow
Hey,

If you try do an update query using the mysql_query() function that has an error in it... is there anyway to capture that error?

if i do something like

$result = mysql_query($sql);

$result will only return the number of affected rows, and if there is an error it doesn't return anything.

Posted: Mon Aug 14, 2006 2:04 pm
by feyd

Posted: Mon Aug 14, 2006 2:04 pm
by s.dot
mysql_error()

aww, i was beaten :P