Jump to content
xisto Community
Sign in to follow this  

Whats Wrong With This?

Recommended Posts

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.