How i can Delete table from database ??

Discussion in 'PHP' started by tomsign, Jul 24, 2010.

  1. #1
    Hi,,



    Anyone tell me how i can delete table from data base?



    Thanks in advance:)
     
    tomsign, Jul 24, 2010 IP
  2. ThomasTwen

    ThomasTwen Peon

    Messages:
    113
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    In PHP, use the following code:

    mysql_query("DROP TABLE `table_name`;");
     
    ThomasTwen, Jul 24, 2010 IP
  3. Zeh.

    Zeh. Peon

    Messages:
    57
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    lmgtfy.com/?q=sql+drop+table

    mysql_query('DROP TABLE tablename');

    ...
     
    Zeh., Jul 24, 2010 IP