As I'm in the process of upgrading to 1.5.4 on a server running PHP 5.6 this
Code:
if( mysql_num_rows( mysql_query("SHOW TABLES LIKE '".DB_PREFIX."so_payment_types'"))){
$sql = "TRUNCATE TABLE ".DB_PREFIX."so_payment_types";
$db->Execute($sql);
}
(which is Super_orders' init_so_config.php) fire me with
.
Would this replacement work and is it the write syntax ?
Code:
$sql = "SHOW TABLES LIKE '".DB_PREFIX."so_payment_types'";
$result = $db->Execute($sql);
$row_cnt = $result->num_rows;
if($row_cnt){
$sql = "TRUNCATE TABLE ".DB_PREFIX."so_payment_types";
$db->Execute($sql);
}
Thanks for your help
Hubert