User feedback after MySQL query has been executed
Posted on
16th Feb 2014 07:03 pm by
admin
Hi all, I've just registered on PHPFreaks because I've got a question that I simply can't work out by myself.
Im developing a web based reporting application, based upon PHP/MySQL. At some point the user can chose some parameters from a form like dates etc and hit a button, then the form data is submitted to execute_report.php, which contains some code as follos:
Did you know?Explore Trending and Topic pages for more stories like this.
Code: <html>
Some html stuff here, like text output for the user, that the query xyz has been started
<?php
Here goes the first query
?>
Then html code again to insert a line that the query has finished
Another line of text that the next query has started
<?php
And the next MySQL query
?>
Text again that the query has finished ... and so on
</html>
Basically everything works like a charm. The queries do what I want and deliver the output and results just fine. What bugs me is, that all results and the html text output are only displayed after the last query has finished.
During the whole executing time, the browser just says "Loading" until the queries have executed, then all results are displayed the way I intended them to.
I already tried experimenting with putting the queries into functions and also with sleep commands, but to no avail.
I would love to give the user a feedback before a query starts and after it has finished, sort of in "Real time". Any tips would be greatly appreciated
No comments posted yet
Your Answer:
Login to answer
216
50
Other forums
On page view, minus credit
Hello all, please, I need a little help with this script. I am charging one credit (credits can be p
rename the file
File.txt
Code: ***DOCUMENT***
..DN:
000044255
..CB:
..SN:
..PY:
2009
..E
PHP SUBMIT
Code: <input name="doLogin" type="image" src="images/loginsubmit.jpg
preg_replace question
Hello!!
I hope someone can help me with preg_replace.
I load two tables from an extern
OPINIONS WANTED
This is my login page code, and I want your opinion on it please!
Code: // Login ~ CHECKS
php calculate
this code echoes correctly the sum but the inserted result is 0??
Code: <?php
$TotalNum
no idea what to do...
I'm fed up. I had issues with code that I have working on a different site that didn't work on my cu
extending tidy
I have problem with type-hinting and extending tidy. This code creates error:
Code: class cMyTidy
Multiple Do / While Statements?
I'm still very new to PHP, and running in to a problem when trying to execute a do/while loop inside
Session login issue
I'm wondering how to fix a problem I'm having with a session-based login system
Say I go to h