Bad count
$resultgt = $jakdb->query('SELECT COUNT(*) as totalAll FROM ' . $jaktable . ' WHERE ((startdate = 0 OR startdate <= ' . time() . ') AND (enddate = 0 || enddate >= ' . time() . ')) AND catid IN(' . smartsql($page2) . ') AND active = 1');
$getTotal = $resultgt->fetch_assoc();
This value isn't good because article can more ona category :-)
smartsql($page2)
Solution
Works perfect. If I want to see all article in category :-)
Thank you for your input.