well mysql is telling me i have an invalid result, i don't understand why though. i'm using sessions, and before i pull to check the password and username, i check the username and password from the registered session values. The are there, but for some reason i cant get a result.
query/result::
$sql = "select * from user where username = '$uid' and password = password('$pwd')";
$result = mysql_query($sql);
the strange thing is that it will work in other scripts if i supply the username and password directtly.