Trouble Deleting Table

    Date: 01/05/06 (PHP Community)    Keywords: php, mysql, sql

    I've tried several variations of code.
    (even direct copy from several sites)

    But I can't seem to delete a table from my php file.
    (works great from directy sql in phpmyadmin)

    Here is the code I am working with (connection already made to db)

    Any ideas? Thanks!

    -----

    $tblname = "tablename";

    $result = @mysql_query("DROP TABLE '$tblname'");
    if (!$result)
    {
    echo ("Error--Unable to Delete Table. Try Again Later");
    exit;
    }

    Source: http://www.livejournal.com/community/php/389160.html

« PHP/PayPal Subscriptions... || gfd »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home