I have this SQL Statement:
$query = "SELECT food_quality, COUNT(food_quality) as cnt FROM surveyData GROUP BY food_quality";
But I want to filter the results even further with a variable that is passed from the previous page. Here is the statement I want to add:
WHERE `bizID`='$imagenum'
I'm unfamilar with the formatting SQL queries and the couple of places I tried gave me error messages.
Thanks for the help!