Canman2005 Posted April 13, 2007 Share Posted April 13, 2007 Hi all Something strange is happening. I have an if statement, it looks like if($_GET['folder'] != 4) { $sql = "UPDATE `messages` SET `read` = 1 WHERE `id` = ".$_GET['id'].""; $query = mysql_query($sql); exit(); } So it should run that query if the url looks like page.php?folder=1 and if the url looks like page.php?folder=4 then it shouldnt run, as the ?folder= value in the url is 4 But for some reason, this rule isnt happening and if the url contains ?folder=4 Does anyone know why this isnt working correcly? Any help would be great Thanks Dave Quote Link to comment Share on other sites More sharing options...
btherl Posted April 13, 2007 Share Posted April 13, 2007 Try echo "GET_folder = " . $_GET['folder'] . "<br>"; either just before the if, or inside the if. Quote Link to comment Share on other sites More sharing options...
Canman2005 Posted April 14, 2007 Author Share Posted April 14, 2007 thanks, worked great 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.