I've got some older software that was written a few years ago but is now unsupported so I can't simply upgrade to resolve this issue.
Meaning; that I cannot go to the vendor and get a software update to resolve it.
I'm getting an error on all my pages because of this 1 line of code. I know what needs to happen to it but because I don't do much SQL programming I'm unsure how to implement it.
The code:
$dblink = mysql_connect(SB_HOST_NAME,SB_DB_USER_NAME,SB_DB_PASSWORD) OR DIE("Unable to connect to database");
The error:
Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/kribs/public_html/stconfig.php on line 117
Warning: Cannot modify header information - headers already sent by (output started at /home/kribs/public_html/stconfig.php:117) in /home/kribs/public_html/key/openinfo.php on line 248
I've come across the article saying it needs to use the newer format but not sure how it applies to this situation.
Any help is much appreciated, I will continue reading to see if I can resolve it in the mean time.