Re: Re: saving resource objects
| From: | Michael Lewis | Date: | Wed, 17 Dec 2003 02:34:01 +0000 |
| Subject: | Re: Re: saving resource objects | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-172848@lists.php.net to get a copy of this message | ||
Thanks, Justin. I'll look into it.
Michael
----- Original Message -----
From: "Justin Patrin" <papercrane@reversefold.com>
To: <php-general@lists.php.net>
Sent: Tuesday, December 16, 2003 9:28 PM
Subject: [PHP] Re: saving resource objects
> Michael Lewis wrote:
> >
> > How can I pass this variable and its contents so they are usable to the
next
> > web page?
> >
>
> The short answer is that you can't pass resources back and forth between
> pages. You could consider passing the current index, rerunning the
> query, and seeking to the new index.
>
> OR, you could have it all done for you with:
> http://pear.php.net/package/DB_Pager
>
> Not only does this do you "paging" for you, it gets you started using
> DB, a database abstraction class that gives you a standard interface for
> all databases, lots of useful utility functions, and allows you to
> switch databases if you need to with minimal change to your code.
>
> Or if you don't want ot use DB, you can just use the Pager:
> http://pear.php.net/package/Pager
>
> --
> paperCrane <Justin Patrin>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>