mysql qeury errors
2 replies to this topic
Posted 05 November 2005 - 05:20 PM
i have a few sql queries that are not working. is there any way to get mysql or php to tell me why the query is failing? my apache log file tells me nothing about mysql and the mysql log file only tells me about server errors. am i missing something obvious?
Posted 05 November 2005 - 05:36 PM
mysql_error() coupled with die() or echo
$result = mysql_query($sql) or die(myql_error()); //some coders like this $result = mysql_query($sql); if(!$result) echo mysql_error();
Please use EDIT * 100...
or [php] * 1000... PLEASE READ THE POSTED SOLUTIONS CAREFULLY * 1000000...
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users