hello all!
help me plsss...
id like to rename a table. however the new table name is request from the user<user enter new name in a form>. im just not sure how the syntax is.
let say the variable is $newname
$rename="ALTER TABLE 'newtable' RENAME '$newname'" ;
mysql_query($rename)
or die ("couldn't rename")
i get the "couldn't rename" msg, meaning it cant execute the query.
ive check the newname posted by echoing it. nothing wrong with it.so i guess the prob is at the query syntax.
thanx in advance fellas!