Code:
$results = mysql_query("SELECT COUNT(*) as 't_records' FROM `news` domain = '".$domain."' AND menu_name = '".$menu_name."' AND menu_type = '".$menu_type."'") or die(mysql_error()); $total_records = mysql_fetch_assoc($results); $total_groups = ceil($total_records['t_records']/$items_per_group);
...
Leave a comment: