Why doesn't this work?
| From: | Joel | Date: | Fri, 27 Jul 2001 18:08:02 +0000 |
| Subject: | Why doesn't this work? | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-8536@lists.php.net to get a copy of this message | ||
I'm trying to create table in a database using PHP with MySQL.
I want the script to do it on its own, I tried but couldn't get it
to work. The script is below :
<?php
$db = mysql_connect("localhost","myusername","mypass");
mysql_select_db("sitesko2",$db);
$sql = "CREATE TABLE computers (Email TEXT not null , Username TEXT not null , Password TEXT
not null )";
mysql_result($sql,$db);
echo "<B>DONE!</B>";
?>
Please let me know whats going wrong in that.
Thanks,
--
Joel Agnel.
joelagnel@spamex.com