Hi there -
I have queries that take 10-15 seconds to run, they pull data from 10-12 tables, the data varies anywhere from 500 - 2000 rows. Thats really not my issue.
My issue is probably something to do with HTML refresh. What i want is a temp page to be displayed while the query is running. As soon as the query is complete, the temp page shud dissapear and the results of the query shud take its place, something like the one in Priceline, orbitz (Wait... Searching for the best available deal ')
Heres the structure of my code
<form method=post action='run_query.php'>
.....
.....
.....
<input type=submit value="Run Query">
</form>
run_query.php
<?
include('temppage.php'); // This is the temp page that i m
//referring to
run query; // execute the query here
include('displayresult.php') // include a new page that display the
// results of the page the
?>
But wat happens here is that - since temppage.php is already included at the begining, displayresult.php gets displayed below it, so both the pages show after the query is executed.
Wat i want is - after the query is exected just one page is displayed - 'displayresult.php' and not both
is there any way i can do it ???
Your help wud be greatly appreciated
Thank you
Viv