View Single Post
Old 06-23-2004, 11:02 AM   #9 (permalink)
metazai
Regular Contributor
 
Join Date: Apr 2004
Location: Orange County, CA
Posts: 125
metazai is on a distinguished road
Oh, sorry . . . yes, I'd tried it before as well, but I just tried it again:

PHP Code:
$sqldrop "DROP TABLE $daydata"
$sqlreset "CREATE TABLE '".$daydata."' ('id' tinyint(4) NOT NULL auto_increment, 'start_time' int(11) NOT NULL default '0', 'end_time' int(11) NOT NULL default '0', 'time_label' text NOT NULL, 'name' text NOT NULL, 'image' text NOT NULL, 'info_link' text NOT NULL, PRIMARY KEY ('id')) TYPE=MyISAM"
$sqlinsert "INSERT INTO '".$daydata."' SELECT * FROM '".$daydata."_Template'"
Resulting in this:
You have an error in your SQL syntax near ''Friday' ('id' tinyint(4) NOT NULL auto_increment, 'start_time' int(11) NOT NULL' at line 1
metazai is offline   Reply With Quote