Go Back   Forum Care Forums > Development Reference Area > Php Development

Reply
 
LinkBack Thread Tools Display Modes
Re: [PHP] Re: Too many records to display in one web page
Old
  (#11)
Steve
Guest
 
Posts: n/a
Default Re: [PHP] Re: Too many records to display in one web page - 06-02-2007, 08:56 PM

Very true. I completely forgot to mention that


"Chris" <EMAIL REMOVED> wrote in message
news:EMAIL REMOVED...
> Steve wrote:
>> The way I handle it:
>>
>> Step 1-
>> Add SELECT SQL_CALC_FOUND_ROWS to the front of your initial query and add
>> the pagination limit to the end (LIMIT 200, 400 or whatever range you
>> want to display.)
>>
>> Step 2-
>> Do a 2nd query: SELECT FOUND_ROWS() immediately after.

>
> With a *HUGE* clause that this only works with mysql.
>
> There are other databases out there :P
>
> --
> Postgresql & php tutorials
> http://www.designmagick.com/

   
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

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





Contact Us - Forum Care Forums - Archive - Top