I am trying to keep all the PHP files separated from the HTML files. Sort of a template based project but without using any template engines as they ar
Your code is a bit of a mess, you need to go back to the basics: your statement is returning $id and not $product as you mentioned. To return anything from the database, in your template.html do: