MySQLi extension(the “i” stands for )
improved
PDO Stands for
PHP DATA OBJCETS
Mysqli and PDO difference
PDO will work on 12 different database systems, whereas MySQLi will only work with MySQL databases.
Steps in creating the Class
ATTR_DEFAULT_FETCH_MODE
PDO::ATTR_DEFAULT_FETCH_MODE Fetches a row from a result set associated with a PDOStatement object. The mode parameter determines how PDO returns the row.
FETCH_ASSOC
PDO::FETCH_ASSOC: returns an array indexed by column name as returned in your result set
Creating a Class that Extends your DB class file (Displaying records from your Database)
Displaying Record by requirement category
Inserting New Record