Hey guys, I am trying to get some information from my database with a mysql query.
Is it to possible to user more than 1 "WHERE" statement?
Original:
$notification_query = mysql_query("SELECT * from notifications WHERE userid='$user_id' ORDER BY id DESC");
$notification_num_rows = mysql_fetch_array($notification_query);
I want to do something like this:
$notification_query = mysql_query("SELECT * from notifications WHERE userid='$user_id' [COLOR="Red"]AND read='0'[/COLOR] ORDER BY id DESC");
$notification_num_rows = mysql_fetch_array($notification_query);
Thanks in advance! 🙂