Re: saving resource objects

From: Date: Wed, 17 Dec 2003 02:28:08 +0000
Subject: Re: saving resource objects
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-172846@lists.php.net to get a copy of this message
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>

« previous php.general (#172846) next »