Creating tables via PHP

RGAnthony

New member
Local time
Today, 10:13
Joined
Jul 21, 2006
Messages
5
Hey guys,
I am trying to setup a "table creation" script.
The line im working on is :
$sql = "CREATE TABLE $company (id INT(3), customername TEXT, rating TEXT, customer_email TEXT, comments TEXT, status NUMBER)";

But its returning an Error.

What i want to do is have "id" set as primary key and autonumber,
can someone please help.

Thanks,

Anthony
 

Users who are viewing this thread

Back
Top Bottom