Archbob
November 3rd, 2002, 22:09
<?php
$mysql_link = mysql_connect("localhost", "username", "password")
or die("Could not connect");
$SQL[]="CREATE TABLE guests (
guest_id int(4) unsigned zerofill DEFAULT '0000' NOT NULL auto_increment,
guest_name varchar(50),
guest_email varchar(50),
guest_time timestamp(14),
guest_message text,
PRIMARY KEY (guest_id)
);";
$SQL[]="INSERT INTO guests ( guest_id, guest_name, guest_email, guest_time, guest_message ) values( 0000,'Tony','tony@awtrey.com',NULL,'This is how it works!' )";
?>
Hey I ran this script and when I go to my phpadmin, I don't see a table guest. Of course username and password were mine and the database connected successfully.
$mysql_link = mysql_connect("localhost", "username", "password")
or die("Could not connect");
$SQL[]="CREATE TABLE guests (
guest_id int(4) unsigned zerofill DEFAULT '0000' NOT NULL auto_increment,
guest_name varchar(50),
guest_email varchar(50),
guest_time timestamp(14),
guest_message text,
PRIMARY KEY (guest_id)
);";
$SQL[]="INSERT INTO guests ( guest_id, guest_name, guest_email, guest_time, guest_message ) values( 0000,'Tony','tony@awtrey.com',NULL,'This is how it works!' )";
?>
Hey I ran this script and when I go to my phpadmin, I don't see a table guest. Of course username and password were mine and the database connected successfully.