I would like to start with a little background if anyone has any better ideas for design.
I want to create a database class that connects to the database when building. I would use functions to call the database to get what I want. The database connection will be closed upon destruction.
Since I am connecting to the construction, I would like to use some properties as part of mysql_connect ... but they are not initialized until build. I was wondering if there is a way to initialize member variables, such as a member initialization list in C ++, but in PHP.
source
share