onedumbcoder Posted April 2, 2008 Share Posted April 2, 2008 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(); Quote Link to comment Share on other sites More sharing options...
onedumbcoder Posted April 2, 2008 Author Share Posted April 2, 2008 if you see nothing wrong please let me know maybe its in a different part of the code? Quote Link to comment Share on other sites More sharing options...
trq Posted April 2, 2008 Share Posted April 2, 2008 Have you validated your html? Quote Link to comment Share on other sites More sharing options...
uniflare Posted April 2, 2008 Share Posted April 2, 2008 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.) Quote Link to comment Share on other sites More sharing options...
uniflare Posted April 2, 2008 Share Posted April 2, 2008 seems fine to me now, strange... in ie7 - maybe u fixed it? Quote Link to comment Share on other sites More sharing options...
onedumbcoder Posted April 2, 2008 Author Share Posted April 2, 2008 no i haven't changed anything. i can post the full code if that will help. Quote Link to comment Share on other sites More sharing options...
uniflare Posted April 2, 2008 Share Posted April 2, 2008 try debugging it yourself a little first, try outputting only certain parts of your code at a time, try to isolate the error. if you cant find the error then post the full code Quote Link to comment Share on other sites More sharing options...
trq Posted April 2, 2008 Share Posted April 2, 2008 Have you validated your html? Quote Link to comment Share on other sites More sharing options...
trq Posted April 2, 2008 Share Posted April 2, 2008 It doesn't validate for starters. See here. Id'e start there. Quote Link to comment Share on other sites More sharing options...
onedumbcoder Posted April 2, 2008 Author Share Posted April 2, 2008 that page is wrong, its saying "FONT" is undefined.... um whats going on!? ??? Quote Link to comment Share on other sites More sharing options...
uniflare Posted April 2, 2008 Share Posted April 2, 2008 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. Quote Link to comment Share on other sites More sharing options...
uniflare Posted April 2, 2008 Share Posted April 2, 2008 most of those validation errors are oming from your doctype, i'd suggest using an XHTML doctype OR remove self-terminating html entities, eg: <img src="..." /> (XHTML) <img src="..."> (HTML) Quote Link to comment Share on other sites More sharing options...
onedumbcoder Posted April 2, 2008 Author Share Posted April 2, 2008 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 Quote Link to comment Share on other sites More sharing options...
Cep Posted April 2, 2008 Share Posted April 2, 2008 You should always aim to validate your page against a doctype. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.