Hi José,

Have you checked the manual for Zend_Db_Table?

<?php
$table = new Bugs();
$where  = $table->getAdapter()->quoteInto('bug_status = ?', 'NEW');
$order  = 'bug_id';
// Return the 21st through 30th rows
$count  = 10;
$offset = 20;
$rows = $table->fetchAll($where, $order, $count, $offset);
?>

This is outlined further at 
http://framework.zend.com/manual/en/zend.db.table.html

-Ryan

On Thu, 12 Jul 2007 12:54:09 -0300, "José de Menezes Soares Neto" <[EMAIL 
PROTECTED]> wrote:
> everyone forget things :P
> 
> can I limit the numbers of results of a query using fetchAll()?
> 
> 
> 
> 
> 2007/7/11, ViShap <[EMAIL PROTECTED]>:
>>
>> ACK
>>
>> josé, look for tutorials and books to get the basics of php  =)
>>
>> good ressources are google, o´reilleys and of corse ZEND (articles and
>> tutorials)!
>>
>> regards
>>
>> 2007/7/12, till < [EMAIL PROTECTED]>:
>> >
>> > On 7/11/07, ViShap < [EMAIL PROTECTED]> wrote:
>> > > (...)
>> > > 2007/7/11, José de Menezes Soares Neto < [EMAIL PROTECTED]>:
>> > > > (...)
>> >
>> > Guys,
>> >
>> > not to be mean - well forget that! ;-) But maybe a PHP primer is
>> > necessary here and this should be discussed off list?
>> >
>> > Regards,
>> > Till
>> >
>>
>>
> 
> 

Reply via email to