Hi,
I have the following problem after changing the hosting provider.
Cron jobs are not running.
After a lot of searching, I found that the php version of the database is newer. I tried options but it didn't work.
I am posting the code that needs to connect to the database.
Code: Select all
header('Content-Type: text/html; charset=utf-8');
ini_set('max_execution_time', '1200');
ini_set('memory_limit', '128M');
require_once('/home/***/public_html/config.php');
mysql_connect(DB_HOSTNAME,DB_USERNAME,DB_PASSWORD) or die ("Unable to connect to MySQL");
mysql_select_db(DB_DATABASE) or die ("I can't select the base");
mysql_query("SET NAMES 'utf8'") or die("I cannot complete the request");
$query = "SELECT sku, quantity, stock_status_id, price FROM oc_product";
$result = mysql_query($query) or die("Data not found.");
Opencart 2.3.0.2