I have an outdated php/mysql script that isn't working, due to a server software upgrade.
Here are some lines from the error log:
[03-Apr-2017 04:05:16 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/intelli1/public_html/metrics1/start.php on line 18
[03-Apr-2017 04:05:16 UTC] PHP Deprecated: Function mysql_numrows() is deprecated in /home/intelli1/public_html/metrics1/library.php on line 135
This is line 18
$connection=mysql_connect($sqlserver,$db_login,$db_pass) or die('Could not connect to the database server');
and this is line 135
I am not a programmer, please give me instructions on what changes need to be made to those lines.
If the changes don't work, what further information would be needed?