lonewolf217 Posted August 13, 2008 Share Posted August 13, 2008 I have a simple PHP site that pulls information from a database and displays it in a table on the page. On all of my pages however, when I load the page the firefox status bar says "Transferring data from <server>..." for several seconds after everything on the page has been displayed, and the page itself also still has the "loading" icon as if its not ready yet I do not think it has anything to do with my code since it is very simplistic, but perhaps a php.ini setting that I do not know about. Does anyone have an idea of what might be going wrong here ? Its not really causing problems, just a final annoyance im hoping to get rid of Here is a sample of my simplest page, just outputting some information from a tracking table define.php just holds some arrays with predefined values that I use in some of my pages. no calculations or queries are done there <?php session_start(); include 'define.php'; $strSQL = "SELECT * FROM history"; if($connection = mssql_connect($myServer,$myUser,$myPass)){ mssql_select_db($myDB,$connection); if($sql = mssql_query($strSQL)) { echo "<center><table border=1>"; echo "<tr><td><b>Username</b></td><td><b>Action</b></td><td><b>Time</b></td></tr>"; while($row = mssql_fetch_array($sql)) { echo "<TR><TD width=100>"; echo $row['UID']; echo "</TD><TD width=300>"; echo $row['action']; echo "</TD><TD width=200>"; echo $row['timestamp']; echo "</TD></TR>"; } echo "</table></center>"; } else { echo "Error: " . mysql_error(); } } else { echo "Error: " . mysql_error(); } ?> Link to comment https://forums.phpfreaks.com/topic/119491-solved-php-page-says-quottransferring-data-from-ltservergtquot-for-several-seconds/ Share on other sites More sharing options...
geudrik Posted August 13, 2008 Share Posted August 13, 2008 use mysql_close() to close your connection to the database after your table has been outputted. I didn't see that anywhere in your code. See if that helps. Link to comment https://forums.phpfreaks.com/topic/119491-solved-php-page-says-quottransferring-data-from-ltservergtquot-for-several-seconds/#findComment-615600 Share on other sites More sharing options...
lonewolf217 Posted August 13, 2008 Author Share Posted August 13, 2008 ive tried that before, didn't help I am thinking that this is something to do with just firefox though because when I try it in IE i do not get the message I guess there is nothing I can do about it for now so just closing the topic Link to comment https://forums.phpfreaks.com/topic/119491-solved-php-page-says-quottransferring-data-from-ltservergtquot-for-several-seconds/#findComment-615613 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.