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();

Link to comment
Share on other sites

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.)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.