Why is this table not being dropped?
Posted on 2014-10-27
Need to drop a table. My code looks like this:
$the_twitter_table = "tw_2013-11-06";
$matt = "drop table $the_twitter_table";
The error I get is "1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''tw_2013-11-06'' at line 1"
When I run drop table tw_2013-11-06 in my phpMyAdmin interface, it works great, but I'm blowing it somewhere when I try to do it via PHP. What am I missing?