Error: The msqli extension is out of date in php in my panel? [duplicate]

0

Hello, when I try to login to my panel by means of the following code line:

mysql_connect($server, $user, $pass);
mysql_select_db($db);

Return the error:

Msql esta desactualizado.

Then what I do is pass it to msqli:

mysqli_connect($server, $user, $pass);
mysqli_select_db($db);

but it returns me:

Could I try to redo the connection in PDO but maybe using msqli and the two parameters it asks would be enough? what is the other parameter that I have to put?

    
asked by sir mirror 12.01.2018 в 02:33
source

1 answer

1

The first parameter is the connection to the database server of which you are going to use and the second is the name of the database to be used. It would be like this:

$conexion= mysql_connect($server, $user, $pass);
mysql_select_db($conexion, $db);

Although you should use PDO since those functions are obsolete

    
answered by 12.01.2018 в 02:38