usually, when i issue a
Code:
$result = mysql_query ($sql);
next block of code is
Code:
if (!$result) // meaning that there was an error in the SQl statement...
{
echo ("SQL: " . $sql . "\n";
echo ("mysql_error() . ": " . mysql_errno() . "\n");
die;
}
that way, it echoes the SQl statement so i can paste it into my fav mysql client and further view it.
plus, it dumps the mysql error # and message.