dimanche 4 septembre 2016

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in


to resolve this deprecated warning you can add   "@" operator before function name like

 @mysql_connect("localhost","root","");

or add this function

 error_reporting(E_ALL ^ E_DEPRECATED)

in fact:
To not display the E_DEPRECATED errors (for example) without changing the rest of the configuration :
error_reporting(error_reporting() & (-1 ^ E_DEPRECATED));

http://www.php.net/manual/fr/function.error-reporting.php

CANADA JOB