MySQL Query Error Result
Posted: Mon Aug 14, 2006 1:59 pm
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.
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.