hey guys, long time no see, im having a problem using a nickname or a email to log into a website i have everything layout but its not working im not sure what im doing wrong thats why i came here for a few pointers or tip this is what my query looks like
$log = "SELECT * FROM members WHERE nick='$username' OR email='$username' AND password='$password'";
and this is what the html code looks like
<form action="" method="post">Username: <input type="text" name="username" /> Password: <input type="password" name="password" /> <input type="submit" name="submitt" value="Login" /></form>
what i was planning is when you enter either a email or username it still logs you in as long as the information is within the database but so far im only being able to use the username only