Re: Displaying data as while recieving form mysql server

From: Date: Fri, 22 Feb 2002 23:52:17 +0000
Subject: Re: Displaying data as while recieving form mysql server
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-17213@lists.php.net to get a copy of this message
I've noticed in the past that some webbrowsers will start to display before it's finished. I remember a few years back that some version of Netscape did it because our "web design" class made some HORRIBLE code which usually didn't end/complete properly, but would still show up. Also, on those old dialup modems, it would show part of the table before it is finished. I believe this is a browser issue. I don't know how the current versions handle this. -w -- William Fong - wfong@mookandblanchard.com Phone: 626.968.6424 x210 | Fax: 626.968.6877 Wireless #: 805.490.7732 | Wireless E-mail: 8054907732@mobile.att.net ----- Original Message ----- From: "Roel Mulder" <r.mulder@mta.nl> To: <php-db@lists.php.net> Sent: Friday, February 22, 2002 3:30 PM Subject: Re: [PHP-DB] Displaying data as while recieving form mysql server : Hi Lee, : You can't. A <table> has to be closed </table> before a browser can render : it and present it to you. : So, the webserver may well be : trowing echo("<tr><td>".$row[$i]."<td></tr>\n"); to the browser, the : browser will wait for the </table>. : You might try cutting the one big table into smaller tables, each complete : table will be visible as it is completed. Or find an alternative and don't : use tables. : : This also argues that it is not wise to put an entire (much content) page : into a table: : <body> : <table> : ... content, much content ... : </table> : </body> : as it simply takes ages before anything seems to happen in your browser. : : M.vr.gr. : Roel Mulder : : At 16:17 22-02-2002 -0600, you wrote: : >Hello. : > : >After I run my mysql query and get the results, then I do a look to put : >the data into table rows that go to a webbrowser. : >How can i set it up so that the user see's the table rows as their writen, : >not after the script is all done. : > : >Lee : >lee@ricis.com : > : > : >-- : >PHP Database Mailing List (http://www.php.net/) : >To unsubscribe, visit: http://www.php.net/unsub.php : : Mulder Technisch Advies : Postbus 69 : NL-2740 AB WADDINXVEEN : tel. 0182-640184 fax. 0182-640185 : http://www.mta.nl : : : -- : PHP Database Mailing List (http://www.php.net/) : To unsubscribe, visit: http://www.php.net/unsub.php :

« previous php.db (#17213) next »