Hey there; i need some help dropping a table from a database. I use the following line after connecting to mysql and selecting the database, but it gives me a parse error. Any help would be appreciated.
drop table $table_name;
Thanks in advance.
You need to call it with the appropriate database function:
mysql_query("DROP TABLE $table_name");
You also need the correct permissions as the user but that woudn't generate a parse error.
Thank you!! i'll give it a shot and tell you how it turns out 🙂
x
XY actually