I am also new to this and have the following function that helps me with errors: (which displays mysql errors)
function showerror( )
{
if (mysql_error( ))
die("Error " . mysql_errno() . " : " . mysql_error( ));
else]
die("Could not connect to the DBMS");
}
I can usually figure out what is wrong after seeing the error message. However....1064 messages are vague in that it tells you 'near' where the error is...lol...if it finds and error then one would suspect that it would now 'exacatly' where the error is.
$result = @mysql_query ($query) or die (showerror());
if ($result) {
echo '<h3>Your request was completed</h3>';
} else {
// If it did not run OK.
echo '<p>Request failed</p>';