我有这个代码:
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()
不返回第一行。mysql_num_rows()
返回正确的行数。
我还在 HeidiSQL 中尝试过这个查询,它给出的行数与mysql_num_rows()
.