andrew_biggart Posted April 7, 2009 Share Posted April 7, 2009 Very simple question but how do you write a WHERE statement for Where Email='$email_to' and Username='$username' ??? im just not sure about the and bit! Quote Link to comment Share on other sites More sharing options...
batch Posted April 7, 2009 Share Posted April 7, 2009 To join multiple WHERE conditions you use the AND keyword. Example: SELECT * FROM example WHERE username = '$username' AND email = '$email' Quote Link to comment Share on other sites More sharing options...
andrew_biggart Posted April 7, 2009 Author Share Posted April 7, 2009 Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.