RE: [PHP-DB] Need some code examples on creating tables for mysql in php
| From: | Rick Emery | Date: | Tue, 19 Feb 2002 18:30:22 +0000 |
| Subject: | RE: [PHP-DB] Need some code examples on creating tables for mysql in php | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-17062@lists.php.net to get a copy of this message | ||
Huh????
$query = "CREATE TABLE mytable (".
"field1 int,".
"field2 varchar(50),".
"field3 decimal(6,2),".
"field4 int,".
"field5 int )";
mysql_query($query) or die("Error: ".mysql_error());
-----Original Message-----
From: CrossWalkCentral [mailto:webmaster@crosswalkcentral.net]
Sent: Tuesday, February 19, 2002 12:26 PM
To: php-db@lists.php.net
Subject: [PHP-DB] Need smoe code examples on creating tables for mysql
in php
Need some code examples on creating tables for mysql in php
can any one help me on this . I searched the php.net site and only found
info on creating a database I just want to create a php script that will
make 2 tables with lets say 5 fields each in them.