Re: Paged Results Set in MySQL DB with one result

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Richard Lynch wrote:
On Wed, May 3, 2006 6:57 pm, Jochem Maas wrote:

a. who said anything about sessions?


Jay did.

dang - I didn't read properly - apologies go out to Edward for that!


He suggested sucking down the whole article, paginating it all, and
cramming the pages into session, presumably so you don't have to suck
down the whole article again.

Which, by the way, is what I dislike about most of these answers...

If the article is REALLY big, a query to get the whole damn thing is
slow.


agreed - but then caching concepts/implementations of content/data/etc
belongs on a whole other level imho.


parsing for html comments that could get blasted by an  errant edit.

the marker is either there or not - and if it'd borked (e.g. '<!--
PAGE MAR')
then it would break the page, sure - but so could ANY broken markup so
the argument
is somewhat moot. besides a routine to strip markers (broken or
otherwise) is
as simple to write as marker splitting function is.


I think the assumption is that the article is actually HTML in the
databse...

I made the same assumption.


At which point, almost any pagination you try to do programmatically
is just plain borked.

absolutely - assuming the programmic pagination is based on 'logic' as
opposed to being based on 'commands' (i.e. specific markers) put in place by
the author of said article (whihc to me equates to putting seperate 'pages'
in seperate records in the DB because the pagination is explicit rather than inferred).



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux