forked from halo-battle/game
Migrate to mysqli PHP extension
This commit is contained in:
parent
1bcad3d120
commit
162dd444bd
2 changed files with 16 additions and 16 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue