Migrate to mysqli PHP extension

This commit is contained in:
nemunaire 2020-11-15 17:22:13 +01:00
commit 162dd444bd
2 changed files with 16 additions and 16 deletions

View file

@ -7,7 +7,7 @@ switch($OPT['type'])
case 'mysql':
case 'postgresql':
$api = array('mysql' => 'mysql_connect', 'postgresql' => 'pg_connect');
$api = array('mysql' => 'mysqli_connect', 'postgresql' => 'pg_connect');
if(!function_exists($api[$OPT['type']])) trigger_error('API introuvable',E_USER_ERROR);
unset($api);