xploita Posted May 4, 2007 Share Posted May 4, 2007 what if i have a sql file with the tables to be created and some data to be populated as well. i want to use php to apply this sql file to a specific database. do i have to read it into a string and use that string as an sql statement ? i mean..what if the file is large,is there a better way? regards Link to comment https://forums.phpfreaks.com/topic/50073-using-a-sql-file/ Share on other sites More sharing options...
benjaminbeazy Posted May 5, 2007 Share Posted May 5, 2007 this is a nice tutorial that should handle that.. http://www.phpfreaks.com/quickcode/SQL-script-import-function/661.php Link to comment https://forums.phpfreaks.com/topic/50073-using-a-sql-file/#findComment-245759 Share on other sites More sharing options...
chronister Posted May 5, 2007 Share Posted May 5, 2007 IF you have access to PHPMyAdmin, you can post the SQL file in there directly. Link to comment https://forums.phpfreaks.com/topic/50073-using-a-sql-file/#findComment-245955 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.