[12-Apr-2018 15:49:25 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/psoykkrhjuz3/public_html/weather/ImportCumulusFile.php on line 234
Line 234 is
Code: Select all
// Connect to the datbase
$con = mysql_connect($dbhost, $dbuser, $dbpassword);
I have attempted to change this line to mysqli_connect() but that crashes the script. ImportCumulusFile.php has several lines of such mysql_ but only the first one shows in the error_log.
What changews should I make to eliminate these errorsÉ