astralaaron Posted January 28, 2008 Report Share Posted January 28, 2008 $q = mysql_query("SELECT * FROM `$id` WHERE box='inbox'");this query will pull all rows where the box column = inboxi would like to know how i can add another column to match up also$q = mysql_query("SELECT * FROM `$id` WHERE box='inbox' & status='unread'");how can i write that? i know there must be a way! please help Link to comment Share on other sites More sharing options...
Ingolme Posted January 28, 2008 Report Share Posted January 28, 2008 Using the SQL AND operator:$q = mysql_query("SELECT * FROM `$id` WHERE box='inbox' AND status='unread'"); Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now