How to add a MySQL query to a Zen Cart page

How to add a MySQL query to a Zen Cart page

It took me a while to figure out how to write my own MySQL query with the correct PHP syntax that Zen Cart likes. I thought I’d share it with you. For example. Lets say you want to find out how many reviews were made for a particular product and display the...