This may or may not be a programming question.
This is regarding a question I asked earlier. You don't need to know about the earlier question for this but it might be relevant. I am not sure if this a memory or settings or ie or maybe db(highly unlikely) issue.
$table_name
is actually a view
, if it makes any difference. The database is MySQL
. I have the following piece of code. For consistency I added die()
at the end.
$query = mysql_query("SELECT * FROM $table_name") or die(mysql_error());
$query1 = mysql_query("SELECT * FROM $table_name") or die(mysql_error());
$query2 = mysql_query("SELECT * FROM $table_name") or die(mysql_error());
$query3 = mysql_query("SELECT * FROM $table_name") or die(mysql_error());
$query4 = mysql_query("SELECT * FROM $table_name") or die(mysql_error());
echo "End";
die();
This simple php page does not run in ie but works fine in chrome and firefox. I get "Internet Explorer cannot display the webpage"
error. There is no error in the developer's tool console. The view
has about 50,000 records.
However this piece of code runs fine. Another query should not make that big of a difference.
$query = mysql_query("SELECT * FROM $table_name") or die(mysql_error());
$query1 = mysql_query("SELECT * FROM $table_name") or die(mysql_error());
$query2 = mysql_query("SELECT * FROM $table_name") or die(mysql_error());
$query3 = mysql_query("SELECT * FROM $table_name") or die(mysql_error());
echo "End";
die();
$query4 = mysql_query("SELECT * FROM $table_name") or die(mysql_error());
I thought maybe it's a large number of records for ie to handle(250k is small). So I tried this piece of code. The query has about 15 records each.
$query = mysql_query("SELECT * FROM $table_name WHERE col1 ='var'") or die(mysql_error());
$query1 = mysql_query("SELECT * FROM $table_name WHERE col1 ='var'") or die(mysql_error());
$query2 = mysql_query("SELECT * FROM $table_name WHERE col1 ='var'") or die(mysql_error());
$query3 = mysql_query("SELECT * FROM $table_name WHERE col1 ='var'") or die(mysql_error());
$query4 = mysql_query("SELECT * FROM $table_name WHERE col1 ='var'")or die(mysql_error());
echo "End";
die();
This one doesn't finish. I get the same error "Internet Explorer cannot display the webpage"
. However this works fine.
$query = mysql_query("SELECT * FROM $table_name WHERE col1 ='var'") or die(mysql_error());
$query1 = mysql_query("SELECT * FROM $table_name WHERE col1 ='var'") or die(mysql_error());
$query2 = mysql_query("SELECT * FROM $table_name WHERE col1 ='var'") or die(mysql_error());
$query3 = mysql_query("SELECT * FROM $table_name WHERE col1 ='var'") or die(mysql_error());
echo "End";
die();
$query4 = mysql_query("SELECT * FROM $table_name WHERE col1 ='var'") or die(mysql_error());
I am really baffled as to how Internet Explorer cannot handle 5 simple queries. Sometimes it doesn't even go to $query3
, it can't go past $query2
.
I have tested this locally - Win7, IE8. I have enough memory, hard drive space etc etc. Locally I am running PHP 5.3.5.
I also tested this on a unix based server on two different computers both running IE8. Again have enough memory, hard drive space etc etc. On the server, the PHP version is 5.25.
I did test this on a smaller table and it works fine. The table has 200 records that I generated randomly. But on a larger table(read view)
it doesn't work.
I am really frustrated at this point with IE. Any insight/help to explain why it doesn't work if IE has any limitations or any way to fix it would be greatly appreciated.