What I ended up doing was seperating out my script into two pieces: one page accepted form input as search criteia and built the table out of those specific records, and the second script allowed the user to browse through those records with a next/previous button.
The real problem began with the next/prev action in that everytime the user clicked the 'next' button, it reiterated the ENTIRE page,i.e. if the form was on the same page as the table creation and the next/prev action, it started from the top of the page and the user would see the form again!
So, breaking them up left the next/prev operation by itself. That in turn made it hard to use a temporary table (one that exists only in memory) because the script ended the second the user clicked 'next', and thus the table ended as well.
So now I'm using 'hard' tables instead. They're created as the 'user_name, so they're unique. And a line that tests for the last record on the 'next' argument, which drops the table from the database after the user has reached the last record.
Stats: 300,000 record table being queried once per search by 400+ simultanious users which in turn creates 400+ individual tables that are in turn queried each time the user hits the 'next' or 'previous' buttons, and which are droped when the last available record is reached................
If anyone has a "resource saving" idea....please let me know.
Thanks 🙂