hello
suddenly everyone is moving from Msql_query to Msqli_query
in order to work with Msqli_query can all msql_**** commands and functions be replaced with the corresponding
Msqli_**** commands and funtion
for example from admin/includes/modules/database_optimizer_common.php
/*********************** REMOVE FROM CUSTOMER TABLES *****************************/
if (! empty($config['customers']) && $config['customers'] < $daysLastRan) {
$dateCustomers = date("Ymd", time() - ($config['customers'] * 86400));
$wasUpdated = true;
$message .= "\r\n" . 'Customers tables were trimmed.';
mysql_query("delete from " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . " WHERE (`products_id`, `customers_id`) in (select `products_id`, `customers_id` from " . TABLE_CUSTOMERS_BASKET . " where customers_basket_date_added < '" . $dateCustomers . "')");
mysql_query("delete from " . TABLE_CUSTOMERS_BASKET . " where customers_basket_date_added < '" . $dateCustomers . "'"); //clear the customers basket table of entries greater than one month old
mysql_query("update database_optimizer set customers_last_update = now()");
}
change to
/*********************** REMOVE FROM CUSTOMER TABLES *****************************/
if (! empty($config['customers']) && $config['customers'] < $daysLastRan) {
$dateCustomers = date("Ymd", time() - ($config['customers'] * 86400));
$wasUpdated = true;
$message .= "\r\n" . 'Customers tables were trimmed.';
mysqli_query("delete from " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . " WHERE (`products_id`, `customers_id`) in (select `products_id`, `customers_id` from " . TABLE_CUSTOMERS_BASKET . " where customers_basket_date_added < '" . $dateCustomers . "')");
mysqli_query("delete from " . TABLE_CUSTOMERS_BASKET . " where customers_basket_date_added < '" . $dateCustomers . "'"); //clear the customers basket table of entries greater than one month old
mysqli_query("update database_optimizer set customers_last_update = now()");
}
greetings
eric
Latest News: (loading..)
ocs1409
Member Since 25 Jan 2008OFFLINE Last Active May 15 2013 09:33 PM



Find content
Male

