I purchased a mod from a developer, but they seem to have disappeared. No reply to any support emails after 3 weeks.
I am hoping that I can find some suggestions with resolving the issue.
It is a database connection issue. Using PHP 7.0.33, mysqli database. OC version 2.3.0.2.
The code the developer has used for the db connection is:
Code: Select all
<?php
include './../config.php';
$connection = mysql_connect(DB_HOSTNAME, DB_USERNAME, DB_PASSWORD)
or die ('I can not connect to the database');
mysql_select_db(DB_DATABASE) or die ('I can not select database');
$con=mysqli_connect(DB_HOSTNAME,DB_USERNAME,DB_PASSWORD,DB_DATABASE);
mysql_query("SET NAMES 'utf8'");
?>
Code: Select all
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in [path redacted]:6 Stack trace: #0 [path redacted](15): include() #1 {main} thrown in [path redacted]on line 6
Thanks to anyone taking time out to reply