Using database in PEAR and Smarty

For using database, you need to install a package of PEAR called ‘MDB2’ along with the installation of PEAR and Smarty. MDB2 provides a common API for all support RDBMS. Connecting to database To instantiate a database object you have several methods available using MDB2. factory(): Will instantiate a new MDB2_Driver_Common instance, but will not … Read more