refactor: Default to only using mysqli (#4915)

* refactor: Default to only using mysqli

* Remove includes/dbFacile.mysql.php

* updated mres() function to remove $config global
This commit is contained in:
Neil Lathwood
2016-11-11 01:40:53 +00:00
committed by Tony Murray
parent 55f0d441e6
commit cc01969b06
9 changed files with 577 additions and 1185 deletions

View File

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