I'm trying to create tables on a (supposedly) properly-configured web server using PHP 4.1.1. My code looks like this:
<?PHP
CREATE TABLE inventory (
vin varchar(25),
color varchar(10),
damage varchar(10));
?>
I left out the connection stuff (that part is working ok).
When I bring up the page, I get a parser error message that points to the CREATE TABLE
line. I've tested the syntax of the SQL statement so I know that's not the problem.
I haven't found anywhere that tells me how to create tables or issue this type of sql command from within a PHP script. Any help would be appreciated.