Ibnatu Posted June 21, 2008 Share Posted June 21, 2008 hello! i need to create a new field in the DB this is how id do it in phpmyadmin ALTER TABLE `user` ADD `field` VARCHAR( 3 ) NOT NULL AFTER `email` but how do i made a php file that will do this for me? since i dont have phpmyadmin access? Link to comment https://forums.phpfreaks.com/topic/111248-creating-new-table-in-mysql/ Share on other sites More sharing options...
DarkWater Posted June 21, 2008 Share Posted June 21, 2008 The exact same way you would in phpMyAdmin...But you know that you can install phpMyAdmin to basically any web server, correct? Anyway, just use mysql_query to do it, but make sure you only run the script once. ONCE. Link to comment https://forums.phpfreaks.com/topic/111248-creating-new-table-in-mysql/#findComment-570975 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.