I tried what seemed like the most intuitive approach
$query = \"SELECT * FROM members
WHERE username = \'$_CLEAN[username]\'
AND password =
If you're checking for exactly one row:
if ($Row = mysql_fetch_object($result)) {
// do stuff
}
You can use mysql_fetch_array()
instead, or whatever, but the principle is the same. If you're doing expecting 1 or more rows:
while ($Row = mysql_fetch_object($result)) {
// do stuff
}
This will loop until it runs out of rows, at which point it'll continue on.