I have this code which causes absolutely no problem en firefox but IE goes crazy; doesnt show anything at all and the info bar at the bottom flashes between the URL of the page and the words "Connecting to IP:xxxxxx". Then after a while I get a pop up saying IE could not connect to the $fullurl_here. Operation cancelled.
The thing is, last night it was working fine and we haven't changed anything.
I have removed lines and tried all I can think of but I have no idea what it could be.
if ($vista=="f") {
// set up loop counter
$col_count = 0;
// start table and first tr
echo '<table><tr>';
}
//Checks if any vehicles are found and if so displays the result in a table
while ($row = mysql_fetch_assoc ($result))
{
$nivel=$row["nivel"]; $user_id = $row["user_id"];
$querycount ="UPDATE db SET viewcount=viewcount+1 where user_id='$user_id'" ; mysql_query($querycount) or die (mysql_error() ); // I have tried without this line
?>
</font>
<?
if ($vista=="f")
{
// if you have output 3 cols then end tr and start a new one
if ($col_count == 3) {
echo '</tr><tr>';
// and reset the col count
$col_count = 0;
}
// always output the td
echo '<td>'; include ("tablenuevof.php"); echo '</td>';
// and count the column
$col_count++;
} // END VISTA FOTOS
else { // Start other view
The tablenuevo.php is just a simple html table with some basic php.
If anyone wants to see what happens click here http://www.tenercoche.com/buscar/coches/buscar.php?lim=0&idiomas=ES&ult=1&vista=f
The normal view works fine. With the photos view, I display 60 results and therefore this loop runs 60 times; with 3 results and with 4 results it works ok. So it isnt due to the line change.
I can imagine 60 lines being a lot - but to crash IE?
Many thanks for anyones help or suggestions.