mysql_connect issue on xampp and opencart
Posted on 2016-08-09
I'm using OpenCart 1.5.4 to mimic a live website on my computer. I'm using Xampp.
I'm getting this error:
Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in G:\xampp\htdocs\steveshopoc\system\database\mysql.php on line 6
Some people have suggested that people with this issue should add this line to PHP.INI to get rid of it:
display_errors = Off
I've added that to multiple php.ini files in OpenCart and to Xampp's php.ini file, but i still get the error (after restarting the server and reopening the browser)
But even if it were hiding the error, should the error be happening?
Also, one site mentioned changing the line in OpenCart:
when i do that, I get this error:
Error: Could not load database file mysqli!
Which makes me think the driver isn't installed... but I can't seem to find it.
Any suggestions on what I can do to resolve this issue?