I'm new to Mysql & have a table where at presently i'm fetching data as
SELECT * FROM tablename WHERE name='$user' AND date='$selecteddate'
Now i want to add 1 more column named status_id where i want to select from to values i.e 1 or 2
I tried this query
SELECT * FROM tablename WHERE (name='Ankit') AND (date='2015-04-23') AND (status_id='1' OR status_id='2')
but didn't work out.
Please help.