I have a large .sql file I need to use in my PHP script. Manually transferring the SQL into PHP/mySQL queries would take a really long time. Would it work if I just used an include statement in my PHP script, and included the sql file in?
Or do they 'have' to be in php/mysql queries?- If so, how can I get around it, short of actually spending a really long time putting it into queries manually.
Could I just do something like?
mysql_query(include('sqlfile.sql')) or die("Query failed : " . mysql_error());