I find it odd all my scripts doesn't change the logged in person's name on any other page, but my threads page. I have no idea why! I looked over the script and saw nothing changing the session (Variable Wise) changing it.
I commented out some off the parts on my large script, but it seems the problem points to here though it doesn't make sence.
It looks it's changing the myemail session.
[PHP]<?
if(@$_SESSION['myemail'] != "") {
print "<a href=\"login.php?type=logout\">Log Out</a> | <a href=\"account.php\">Account Settings</a>";
$link2=mysql_connect('localhost','root','password' );
mysql_select_db('accountdb');
$email32 = $_SESSION['myemail'];
$query = "SELECT * FROM accountTbl WHERE email='$email32'";
$result = mysql_query($query, $link2) or die(mysql_error());
$row = mysql_fetch_array( $result) or die(mysql_error());
$avatar = $row['avatar'];
$email = $row['email'];
$myPower = $row['power'];
$points = $row['points'];
$myId1 = $row['id'];
if($avatar == ""){
$avatar = "http://img1.jurko.net/avatar_5450.jpg";
}
echo "<br><br>Welcome $email <br>" .
"points: $points <br><br>" .
"Avatar:<br> <img src=\"$avatar \" width=\"100px\" height=\"100px\"><br><br>";
//......
?>[/PHP]