01-15-2008, 10:40 PM
|
#7 (permalink)
|
|
The Addict
Join Date: Jan 2008
Location: USA
Posts: 217
Thanks: 16
|
I thought I heard mysqli did!  So much for that hope.
Looks like I might have to write my own "multi-query" member for my database. At the moment this work around is successful, though there isn't any aggregation of the results.
PHP Code:
foreach(explode(";\r\n",$query) as $q) {
if(!$q{0}) {
continue;
}
if(mysql_query($q) == false) {
$str = mysql_error($pDb).'<br/><tt>'.htmlspecialchars($q).'</tt>';
if(!empty($error) && is_string($error)) {
$error = array($error, $str);
} elseif(is_array($error)) {
$error[] = $str;
} else {
$error = $str;
}
}
}
As you can see with a little adaptation you can tweak it for Linux compatibility, but for WAMP it works just fine. For now.
__________________
Programmers are in a race with the Universe to create bigger and better idiot-proof programs, while the Universe is trying to create bigger and better idiots. So far the Universe is winning. - Rich Cook
|
|
|
|