Source for file sqlload.php
Documentation is available at sqlload.php
* Load an SQL stream into the database
* @author Stuart Prescott
* @copyright Copyright Stuart Prescott
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* Load the generated SQL into the database one command at a time
function loadSQL($sql, $host, $username, $passwd) {
// then we successfully logged on to the database
foreach ($sqllist as $q) {
return "ERROR: I had trouble executing SQL statement:"
.
"<blockquote>$q</blockquote>"
.
"MySQL said:<blockquote>"
return "SQL file loaded correctly";
return "ERROR: Could not log on to database to load SQL file: ".
mysql_error() ;
Documentation generated on Tue, 06 Mar 2007 10:02:00 +0000 by phpDocumentor 1.3.0