Any thoughts on this matter would be appreciated. Thanks in advance.
I'm storing the return from mysql_query() into a session variable. The reason for doing this is to build a display page that controls how many items are listed per page. If the user clicks next, then the script runs again. Rather than query the db each time, I'm storing the resource id in the session variable. This works fine on the first run, but on subsequent calls ($_SERVER['PHP_SELF']), PHP complains that I haven't given it a valid resource identifier.
I've confirmed that the session variable works fine in all of the functions on the page for the first call, so I know I'm getting good results.