Jump to content

Archived

This topic is now archived and is closed to further replies.

baber_abbasi

DROP TABLE

Recommended Posts

Hi,

 

Plz tell me how can I drop a table created already in my database by using mysql_query() function.

 

Thankx :P

Share this post


Link to post
Share on other sites

$sql = \"DROP TABLE $tablename;\";

mysql_query($sql);

 

From one of my applications. I use a html form to submit the table name.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.