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! Link to comment https://forums.phpfreaks.com/topic/152911-solved-where-statemtents/ 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' Link to comment https://forums.phpfreaks.com/topic/152911-solved-where-statemtents/#findComment-803043 Share on other sites More sharing options...
andrew_biggart Posted April 7, 2009 Author Share Posted April 7, 2009 Thanks Link to comment https://forums.phpfreaks.com/topic/152911-solved-where-statemtents/#findComment-803046 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.