Jump to content

creating table


rinteractive

Recommended Posts

i am new to mysql, table is not creating even there is no error message. The code i have used below.

 

<?php

$con = mysql_connect("localhost","root","");

if(!$con)

{

echo"Connection failed".mysql_error();

}

mysql_select_db("project",$con);

$sql= "CREATE TABLE `experience` (

`id` int(11) unsigned NOT NULL auto_increment,

`years` int(11) NOT NULL,

 

PRIMARY KEY (`id`)

) TYPE=MyISAM";

mysql_query($sql,$con);

 

mysql_close($con);

?>

 

Please any one help me

Link to comment
https://forums.phpfreaks.com/topic/84276-creating-table/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

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.