PDA

View Full Version : Create table, is it possible? (PHP)


Steven_Smith
08-21-2002, 10:01 PM
Hi, I know that I can create a database using php, but can I create a table with fields on the fly?

bool mysql_create_db ( string database name [, resource link_identifier])

Thanks
Steve :thumbsup:

Steven_Smith
08-21-2002, 10:26 PM
i got it...

mysql_query("CREATE TABLE test (a VARCHAR (1) not null , b VARCHAR (2) not null )");

doh...

:o