To give you an idea of connecting a database in an OOP way, watch the following video. With an inheritance pattern, you can share a template across the instances to eliminate duplicate codes. Please take note that the pattern below shares an idea, not totally what should be the only solution because there can be a more elegant way to solve your assignment:
Let's get our minds challenged more on how to create dynamic codes that autogenerate queries. For this assignment, you will create Sites
, Clients
, Query Builder
, and Database
classes. Use the lead_gen_business database we shared in the previous track.
``` $sites = new Sites(); $sites->s...