Daniel666 0 Report post Posted August 22, 2007 can someone explain to me whats wrong with the following code, im trying to make a table called person, only thing is, for some reason its not working<?php$con = mysql_connect("mysql3.xxxxxxxx.com","xxxxxxxx_forum","xxxxxxx");if (!$con) { die('Could not connect: ' . mysql_error()); }// Create table in my_db databasemysql_select_db("xxxxxxxx_forum", $con);$sql = "CREATE TABLE person (FirstName varchar(15),LastName varchar(15),Age int)";mysql_query($sql,$con);mysql_close($con);?> Share this post Link to post Share on other sites
kelvinmaki 0 Report post Posted August 22, 2007 What is the error message? If you can provide some error that you saw on screen, it will easier to narrow down the root cause. Share this post Link to post Share on other sites
iGuest 3 Report post Posted August 23, 2007 change mysql_query($sql, $con) to just mysql_query($sql) Share this post Link to post Share on other sites
Daniel666 0 Report post Posted August 23, 2007 change mysql_query($sql, $con) to just mysql_query($sql) Thanks dude, that fixed it Share this post Link to post Share on other sites