Implement echo to execute and output $ result = mysql_query ("SELECT * FROM 'A '");
While ($ row = mysql_fetch_array ($ result ))
{
$ Dj = $ row ["DJ"];
Echo $ dj;
}
$ Result = mysql_query ("SELECT * FROM 'BB '");
While ($ row = mysql_fetch_array ($ result ))
{
$ Dj = $ row ["DJ"];
Echo $ dj;
}
The rented Alibaba server can implement the first select output and then execute the second select. after the server is upgraded, all select statements are executed for unified query, which is a bit suspended, how can I implement the original side execution side output? I am using PHP5.2. Is there a problem with the version?
Reply to discussion (solution)
Is this forum no longer popular?
Maybe it's your previous configuration problem!
The general configuration is to wait until the entire page is run and then output. the unexecuted output is saved in the buffer.
If you want to see the output before execution, you can retrieve the content in the buffer.
Ob_flush; flush ();
Ob_flush (); flush ();
There is a roundabout way to write a file 1 2 3 4 5 and then the front-end AJAX requests to read the file's real-time output status.
At least the code you post won't have the effect you described (it won't happen in any situation unless you conceal something)
Forced server buffer (ob_flush and flush) is only valid for some servers and is related to browsers.
? ? Outbound ??? You can.
Ob_flush ();
Flush ();
? Exam: http://blog.csdn.net/fdipzone/article/details/10367837
Execute the program several seconds, and then buffer the output, so that you can set a higher timeout value for your server.