Database connection sample package

Navigation

Try index.php to go back

Page content

Users informations

NumidFirst nameLast namee-mail
04JeanTartampionjeantartampion@aryes.fr
11RomainBourginbourginromain42@gmail.com
22RomainDeuxromaindeux@aryes.fr
33RomainTroisromaintrois@aryes.fr

Author

Example written by Romain Bourgin romain@bourgin.net on december 2014.

Aryes (my website)

What is it?

You are browsing a page rendered with an example package. This package is to show how to connect to a database through PDO. But not only that.

This package shows how to use patterns to code it.

First, the dependency injection pattern is used to encapsulate PDO within DBDialog class.

Second, the factory pattern is used to create functional objects.

Read the source code files to learn more.