Here am trying to get values from a mysql table with the name lead. and the date range is stored in two variables.
start date is stored in $from and end date is stored in $to.
Status is a field in table lead.
I want to fetch data in the date range and status Hot and status Paid
I tried the following query but its not working as expected. please correct me where am wrong.
select * from lead
WHERE added_on >= '$from' AND added_on <= '$to' AND
status='Hot' AND status='Paid'
Use the “IN” to check multiple possible values: