Can anyone give me some examples to make query which has more than one WHERE statements please?
I have the following query and I want to add WHERE privacy = 'public'
$query = $this->db->query("SELECT DATE_FORMAT(eventDate,'%d') AS
day,eventContent,eventTitle,id FROM eventcal WHERE eventDate BETWEEN
'$current_year/$current_month/01' AND '$current_year/$current_month
/$total_days_of_current_month'");
Thanks in advance.