Jump to content

Running .sql with PHP


Neptunus Maris

Recommended Posts

Any idea what versions of PHP/MySQL you need for that? I can't get it to work.

 

<?php
mysql_query ('SOURCE mytest.sql') or die(mysql_error());
?>

 

-->

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SOURCE mytest.sql' at line 1

 

Link to comment
https://forums.phpfreaks.com/topic/105325-running-sql-with-php/#findComment-539495
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.