Hello
When I need to create table I have to login into mysql and run the query. Is there a way to create some sort of scipt that can create all my tables?.So If I need create a table in new database I just run the script.
I know that I can do mysql_query("QUERY OF TABLE"); But is there another way of doing this?
$sql = "CREATE TABLE `rss_cat` ( `id` int(11) NOT NULL auto_increment, `cat` varchar(50) NOT NULL default '', PRIMARY KEY (`id`) ) TYPE=MyISAM AUTO_INCREMENT=1"; mysql_query($sql);
Just use general SQL to create tables in PHP. This isn't the correct list for these kind of questions, since we have php-db for database related stuff.
Regards,
Filip de Waard
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php