2080 3

BIT301 ยท 2080 ยท 10 marks

How can you create a database connection? Create a PHP form that includes text field, password field, radio button elements. Now write a function to insert the data in the fields into a database table.

How can you create a database connection? Create a PHP form that includes text field, password field, radio button elements. Now write a function to insert the data in the fields into a database table.[10]

Web Technology IIChapter 8: Database OperationsDatabase connection creation

PHP does not talk to MySQL directly, it uses an extension. Two are current: MySQLi, which works with MySQL and MariaDB only, and PDO, which puts the same interface in front of a dozen database engines. Both open a connection from four pieces of information, the host, the database user, that user'...