|
When you are running queries you're not sure of, always use this format for the query call (assuming you're using the old style mysql calls):
$result = mysql_query($query) or die(mysql_error() . ", query was $query");
Then not only can you see what the error was, you can see why the query string caused it.
|