create and insert in a single query
mysql_query("CREATE TABLE IF NOT EXISTS $r.`$p` (
`id` int(11) NOT NULL auto_increment,
`title` varchar(255) NOT NULL default '',
`colum` varchar(255) NOT NULL default '',
`ord` varchar(255) NOT NULL default '',
`tex` varchar(255) NOT NULL default '',
`search` varchar(255) NOT NULL default '',
`count` varchar(255) NOT NULL default '',
`order` varchar(255) NOT NULL default '',
PRIMARY KEY (`ID`)
);");
In this I am creating a table , if table is not created and if the table
is created then i want to insert the values in the respective column given
above but I am not good at mysql_query so I dont know where to add the
insert query
No comments:
Post a Comment