Database connection + queries class
from:

Hello, I want to build a class that handles the database connection and the queries. When I have a select query( select name, surname from users where 1 ) for example, I bind the results to let's say $bind1 and $bind2 and while the statement fetches I print the result. My question is how should I return the results outside the class, because there could be more than two binded variables. Probaby the design I'm thinking of isn't very good and should be started from zero.

Poster :
Chetan Tudor