$result = mysql_query($SQL) OR die(mysql_error());
This will print out the error and help locate it.
Just from the first look:
You use single quotes around the table and field identifiers. You should use the backtick instead:
Not ' but `. The backtick is on US keyboards under the tilde ~ left of the numeric key 1.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.