I have this code:
public function getRecurringEventsByGrouped($grouped){
$query = "SELECT * FROM `event` AS e
WHERE e.`grouped` = " . $grouped . " ORDER BY EventId DESC";
$result = mysql_query($query);
while ($ids[] = mysql_fetch_array($result, MYSQL_NUM)) ;
return $ids;
}
mysql_fetch_array() doesn’t return the first row. mysql_num_rows() returns correct row count.
I also tried this query in HeidiSQL and it gave the same rows number as mysql_num_rows().
you need to iterate through the data in while loop.
this should fetch you the correct content.