Jump to content

[SOLVED] Create a table in mySQL from a .php file


5pence

Recommended Posts

YES!!!!!!!!!!!

 

something like:

$sql = "CREATE TABLE mytable(
partno CHAR(10) NOT NULL,
descript CHAR(60) NOT NULL,
cost DOUBLE(10,5) NOT NULL, 
user CHAR(15) NOT NULL,
modelno CHAR(20) NOT NULL,
PRIMARY KEY(partno))"; 

$result = MYSQL_QUERY($sql) or die 
("Invalid create");

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.