I don't have any idea whats wrong with this...I have other scripts that do the exact same thing... anyway, when i use this:
$res = mysql_query("SELECT * FROM users where user='".$user."'");
It returns:
Parse error: parse error in /home/virtual/site18/fst/var/www/html/userdetails.php on line 4
The line I included is line four.