Hey, i am trying to trace where abouts a user is in my forum.
On one of my pages i use this:
$currentlyviewing = mysql_query("UPDATE Forum_Users SET currently_viewing='Thread <a href=ForumReplies.php?threadid=$threadid&threadname=$threadname&sid=$sectid>$threadname</a>' WHERE username='".$_SESSION['username']."'",$connection) or die(mysql_error());
It works fine if $threadname doesnt contain a space BUT... if the variable $threadname does contain a space then the URL ends up broken in half and the variable $sectid isn't called.
Can someone please tell me how to pass the full URL regardless of whether $threadname contains a space.
If you need to know anything else, just ask
Thanks, BIOSTALL