how to create a table in mysql in php code.....in redhat
Moderator: General Moderators
-
siddartha05
- Forum Newbie
- Posts: 1
- Joined: Wed Jan 23, 2008 7:58 am
- Contact:
how to create a table in mysql in php code.....in redhat
its sayin syntax error................key missing.........can u help me
Re: how to create a table in mysql in php code.....in redhat
what is your code?
Re: how to create a table in mysql in php code.....in redhat
u can try something like that.....
Code: Select all
<?php
$sql = 'CREATE TABLE `product` (
`pid` INT( 5 ) UNSIGNED NOT NULL AUTO_INCREMENT,
`name` VARCHAR( 100 ) NOT NULL,
PRIMARY KEY ( `pid` )
)';
mysql_query( $sql);
?>