2012-12-09 114 views
2

所以我有抓住一些記錄使用豆莢。
我有31條記錄,但我while($thePod->fetchRecord())僅環去15次豆莢fetchRecord跳過項目

$thePod = new Pod('projects'); 
$thePod->findRecords('slider_order ASC'); 
$totalItems = $thePod->getTotalRows(); // = 31 

while($thePod->fetchRecord()) : 
    $i++; 

endwhile; 

echo $i.'/'.$totalItems.' looped through'; // displays 15/31 

任何想法,爲什麼這是發生?

回答

3

更改線路2:

$thePod->findRecords('slider_order ASC',-1); 

15每頁的默認記錄,-1返回所有記錄。

+0

太棒了!謝謝 – ahren