duckspeaker wrote in php

Trouble Deleting Table

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;
}