Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-06-2008, 01:12 AM
Member
 
Join Date: Nov 2007
Posts: 33
Question Is fetchAll returning wrong rowset?

Hi, I'm using fetchAll as follows:

PHP Code:
$where   null;
$orderBy 'id DESC';
$count null;
$offset 4;
$recents $episode->fetchAll$where$orderBy$count$offset ); 
Now, when the above code is executed, it's returning all the items in the underlying table and not recognizing that the $offset = 4. If any has any ideas, it would be greatly appreciated.

Thanks in advance,

-Conrad
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-10-2008, 12:54 PM
Junior Member
 
Join Date: May 2008
Posts: 2
Default

i guess it should be like this

PHP Code:

// Fetching a rowset
   
recents $episode->fetchAll($episode->select()->where('bug_status = ?','NEW')
                                                                  ->
order('bug_id ASC')
                                                                   ->
limit(100)); 
pass your variables in where, order, limit etc.

correct me if i am wrong
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 10:50 PM.