Jump to content


Photo

DROP TABLE


  • Please log in to reply
1 reply to this topic

#1 baber_abbasi

baber_abbasi
  • Members
  • PipPipPip
  • Advanced Member
  • 33 posts
  • LocationPakistan

Posted 28 June 2003 - 02:22 PM

Hi,

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

Thankx :P
Baber N Abbasi

#2 rhysmeister

rhysmeister
  • Members
  • PipPipPip
  • Advanced Member
  • 51 posts
  • LocationEngland

Posted 30 June 2003 - 01:36 PM

$sql = \"DROP TABLE $tablename;\";
mysql_query($sql);

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users