Does anyone know why this code doesn't work?
$query = "select * from test_db where
user = '$id' and
password = '$pw'";
$result = mysql_query($query);
I can log in to MySQL and choose my database, but $result returns false. What's wrong with the query?
Edit: Never mind, it was just a noobish mistake. I was trying to select a database from a database.
[Edited by sdn]