n00b needs mySQL help
Posted: Sat Jul 06, 2002 5:25 pm
ok, i put this code:
and it comes out as this:
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource
plz help.... i typed that stuff in the mysql program, and it works perfectly....
Code: Select all
<?php
#Connect to the Server
$conn = @mysql_connect("localhost", "", "");
#Select the Database
mysql_select_db("guestbook", $conn);
#Send SQL Query
mysql_query("CREATE TABLE users
(
ID INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
UserName TEXT NOT NULL,
SignUpDate DATE NOT NULL,
UserDescription TEXT,
);",
"$conn");
#Close Connection
mysql_close($conn);
?>Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource
plz help.... i typed that stuff in the mysql program, and it works perfectly....