Added mysqli support

This commit is contained in:
laf
2015-08-08 19:27:18 +00:00
parent 904a2099b5
commit 4b49c148b6
14 changed files with 1167 additions and 583 deletions

View File

@@ -108,11 +108,21 @@ foreach ($filelist as $file) {
}
if ($line[0] != '#') {
$update = mysql_query($line);
if ($config['db']['extension'] == 'mysqli') {
}
else {
$update = mysql_query($database_link, $line);
}
if (!$update) {
$err++;
if ($debug) {
echo mysql_error()."\n";
if ($config['db']['extension'] == 'mysqli') {
echo mysqli_error($database_link)."\n";
}
else {
echo mysql_error()."\n";
}
}
}
}