John Restaur
New member
$query = mysql_query("SELECT id FROM login.users WHERE name = ' ".$_SESSION['name']." ' AND password = ' ".$password." ' ");
That is my query but for some reason it doesn't work.... as far as I can tell the syntax is correct; maybe I just need another pair of eyes on it. The interesting thing is that if I change the AND to OR in the query, it will work if I have either the correct name or the correct password - it doesn't matter (of course because it says OR)... what am I missing??? I'm about ready to claw my eyes out... Thanks in advance
That is my query but for some reason it doesn't work.... as far as I can tell the syntax is correct; maybe I just need another pair of eyes on it. The interesting thing is that if I change the AND to OR in the query, it will work if I have either the correct name or the correct password - it doesn't matter (of course because it says OR)... what am I missing??? I'm about ready to claw my eyes out... Thanks in advance