PHP Data Insert using OOP - phptpoint

PHP Data Insert using OOP

/ins>

Inserting values into database using object oriented

First We are going to create a class “Database”. This class has two main methods, one is connect which contains connectivity Code with PHP and MySQL.
another method is saveRecords(). It has three arguments : first argument is database table name, Second argument and third argument is for data(inputted by user using HTML Form).

Database Class

Create Database Class object and call saveRecords() method

HTML From