Forum Moderators: coopster
/*I get this error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'table' at line 1*/
$query = "SELECT * FROM table";
if(!($result = mysql_query($query, $database))){
print("Could not execute query!<br>");
die(mysql_error());
}
Welcome to WebmasterWorld!
I would guess the word 'table' is reserved for mysql and we cannot use it as our database or table name, try changing your table name.
Reference:
[dev.mysql.com...]
[edited by: Anyango at 12:01 pm (utc) on Sep. 2, 2008]