<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body><div style="text-align: left;">&gt; Date: Thu, 3 May 2007 16:42:49 +0100&gt; From: ph004h7245@blueyonder.co.uk<br></div>&gt; To: wolves@mailman.lug.org.uk<br>&gt; Subject: [Wolves] Any PHP/MySQL experts who can help me?<br>&gt; <br>&gt; Hi<br>&gt; <br>&gt; I have an interesting problem, well, I guess not interesting as much as <br>&gt; annoying the hell out of me at the moment!<br>&gt; <br>&gt; I have a script that logs a user out of my system:-<br>&gt; <br>&gt; &lt;?php<br>&gt; <br>&gt; <br>&gt; <br>&gt; session_start();<br>&gt; <br>&gt; include 'dbcon.php';<br>&gt; <br>&gt; <br>&gt; /* Change database entry to say that the user is no longer logged in */<br>&gt; <br>&gt; $userID = $_SESSION['user'];<br>&gt; <br>&gt; $result = mysql_query(" UPDATE userAccount SET loggedOn = 'N' WHERE <br>&gt; userID = '$userID' ");<br>&gt; <br>&gt; <br>&gt; /* destroy session */<br>&gt; session_destroy();<br>&gt; <br>&gt; mysql_close( $link );<br>&gt; <br>&gt; header("Location: logout.html");<br>&gt; <br>&gt; ?&gt;<br>&gt; <br>&gt; Now, on my server this works fine, I check the userAccount database <br>&gt; table, and the loggedOn field is correctly set to "N" as it should be to <br>&gt; say the user has logged off, but for some reason, the test system I'm <br>&gt; running on sourceforge dosen't do this, the user logs of, but there <br>&gt; entry is still loggedOn = "Y".<br>&gt; <br>&gt; On my own server where the script works I'm running Ubuntu Dapper 6.06 <br>&gt; LTS installed with the LAMP option, so it auto installs PHP5 and MYSQL5.<br>&gt; <br>&gt; The even stranger thing is that the login script, which uses the exact <br>&gt; same PHP/MySQL code as above, but in that case to set loggedOn = "Y" <br>&gt; works perfectly on both my server and sourceforge!<br>&gt; <br>&gt; I'm stumped, give me more coffee......<br>&gt; <br>&gt; <br><br>What are the contents of dbcon.php?<br><br>Jay<br><br /><hr />Be one of the first to try Windows Live Mail. <a href='http://ideas.live.co.uk/ProgramPage.aspx?versionId=5d21c51a-b161-4314-9b0e-4911fb2b2e6d&pageId=0' target='_new'>Windows Live Mail.</a></body>
</html>