This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @author Jorai Rijsdijk | |
* @desc A simple MySQL database handler in PHP using PDO. | |
* @version 1.3 | |
* Note: | |
* The default database type used is MySQL, but this can be changed by making the following changes: | |
* 1: Update the default port number on line 28 (constructor). | |
* 2: Update the DSN on line 30 (new PDO object) to reflect the database system used. | |
* 3: Change the SQL query on line 44 (in the setDB function) to the equivalent of the SQL query to select a different database. |