Good evening, indeed since PHP5.5 mysql extension is deprecated, so you will have to spend either PDO, or mysqli.
But you can precede your SQL commands with a "@" it disables errors ...
1
| $link = @mysql_connect( 'localhost', 'root', ''); |
there is another solution that you can use and that i found more practice is to disable all deprecated errors and to do that ad this line to your connexion.php file :
1
|
error_reporting(E_ALL ^ E_DEPRECATED);
|

Aucun commentaire