The following SQL statement will create a table in the db on the server:
CREATE TABLE IF NOT EXISTS temp
(
field1 varchar(20) NOT NULL default " ",
field2 varchar(60) NOT NULL default " ",
field3 float(6,2) NOT NULL default "0.00"
);
The following PHP code will not create a table in the same db on the same server:
$query_create_temp = "CREATE TABLE IF NOT EXISTS temp
(
field1 varchar(20) NOT NULL default ' ',
field2 varchar(60) NOT NULL default ' ',
field3 float(6,2) NOT NULL default '0.00'
)
or die('Could not create the table')";
Apparently I have the permissions to create a table and I'm successfully connecting to the server and selecting the correct db. The query doesn't die, it simply doesn't create a table. Doubtless the problem is something simple but I've worked with it for almost 3 hours now without success. Can anyone tell me what I'm doing wrong? Thanks!