How to create table?

From: Date: Wed, 15 Aug 2001 12:03:24 +0000
Subject: How to create table?
Groups: php.db 
Request: Send a blank email to php-db+get-11372@lists.php.net to get a copy of this message
Hi! I have just started to learn about mysql and wonder if my code is good? <?php $connexion = mysql_connect("localhost","login","passwd") or die ("ERROR de connexion on Server"); print ("Connection ok"); mysql_select_db("database_name",$connexion) or die ("Cant find db"); $table= "CREATE TABLE pet (name VARCHAR(20), owner VARCHAR(20), species VARCHAR(20), sex CHAR(1), birth DATE, death DATE)"; ?> Thanks in advance for any help. Regards Jan

« previous php.db (#11372) next »