I want to rename an existing table using an SQL statement:
I already tried:
1)mysql_query("RENAME '$renameFolder' TO '$newName'"); 2)mysql_query("ALTER TABLE '$renameFolder' RENAME TO '$newName'"); 3)mysql_query("RENAME TABLE '$renameFolder' TO '$newName'");
Using any of the three im statements always gets the same error message:
"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax"
Please tell me what I'm doing wrong!
source share