Jump to content

My Website is freezing ie7 and i have no idea why.


onedumbcoder

Recommended Posts

I added some session variables and now when i run it under ie7 it freezes after a few clicks.

 

it works perfect in ff.

 

 

These are the only places i am using and setting the session variables.

 

here is my site http://www.ratemyyouth.com

If you can please visit the site using ie7, to see what i mean, the whole application freezes and i need to shut down ie7 using task manager.

 

can someone please help me? ??? :-[ 

 

include('include/cms/connect.inc.php');
session_start();

 

		$container = $_SESSION['tracker'];
			$newid = $_SESSION['tempid'];
			$lastpicture = $_SESSION['temppic'];

		$userage = mysql_fetch_array(mysql_query("SELECT * FROM user WHERE id='" . $newid . "'"));
		$realage = $userage['age'];

		mysql_free_result($userage);

		$values = mysql_fetch_array(mysql_query("SELECT * FROM rating WHERE user_id='" . $newid . "'"));

		$temp = 0;
		for($i = 18; $i<=90; $i = $i + 2)
		{
			$temp += $i * $values['b'.$i];
		}



		$newvotecount = $values['vote_count'] + 1;
		$newagecount = $values["b" . $updateage] + 1;

		$votedage = round(($temp+$updateage) / ($values['vote_count'] + 1), 1);
		if(!strstr($container,$newid))
		{
			[color=orange][/color]$_SESSION['tracker'] = $container . " " . $newid;

			$query = "UPDATE rating SET vote_count='" . $newvotecount . "', b" . $updateage . "='" . $newagecount . "' WHERE user_id='" . $newid . "'";
			mysql_query($query) or die(mysql_error());
		}

		mysql_free_result($values);
	}

 

	$query = "SELECT * FROM picture ORDER BY RAND() LIMIT 1";
	$result = mysql_query($query);
	$list = mysql_fetch_array($result);
	$loaduserid = $list['user_id'];
	$loadpicture = $list['picture_file'];
	$_SESSION['tempid'] = $loaduserid;
	$_SESSION['temppic'] = $loadpicture;
	mysql_close();

Hmmm, dont notice anything, it seems like ie is having trouble downloading something...

 

try removing parts of the output source, see if you can isolate the problem. (i would suggest starting with no source, then put parts of the source back in - this way you wont crash the browser everytime til you find it.)

make sure all html entities are in lower case for strict xhtml.

 

what doctype are you using btw?

 

you are using HTML 4.01 Strict:

 

You must use CSS Where possible, this means no color attributes/font tags/border attributes etc.

WE DID IT GUYS!

 

i change some stuff around and it is working fine, however im not going to recode it to validate it, thats insane.

 

unless ie starts freezing up again!

 

I love you guys! thankssssssssssssssssssssssssssssssssssssssss

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.