Can anyone help me with an if statement?
My script looks like this.
$results= mysql_query("SELECT * FROM customers WHERE username='$user'and password='$pass'",$db);
if ($myrow = mysql_fetch_array($results)) {
do { I WANT THIS TO GO TO "details.php"}
while ($myrow = mysql_fetch_array($results));
} else {
echo "Sorry, Incorrect Username or Password!";
}
I'm not sure if this is possible. Any help would be greatly appreciated!
Thanks