MDB2 and SQL script
| From: | Tim Denby | Date: | Mon, 20 Nov 2006 01:01:47 +0000 |
| Subject: | MDB2 and SQL script | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-25877@lists.php.net to get a copy of this message | ||
Hello all,
I'm writing a PHP script that will install my application. I have a SQL script as a file (for creating the DB) and I want to execute the whole thing from PHP. But I can't seem to find anything that will execute multiple SQL instructions at once. Do I need to parse the file into individual instructions on my own and loop through them, or is there something in MDB2 (or elsewhere) that would do this for me?
TIA,
Tim
------------------------------------
Ubuntu
MySQL 5
Apache 2
PHP 5