2079 4

BIT301 ยท 2079 ยท 5 marks

How can you query a database in PHP?

How can you query a database in PHP? [5]

Web Technology IIChapter 8: Database OperationsDatabase querying and SQL execution

Querying a database from PHP always follows the same shape: open a connection to the server, hand it an SQL statement, and read back either a result set (for a SELECT) or a count of affected rows (for an INSERT, UPDATE or DELETE). Two extensions are current, MySQLi, which works with MySQL and Mar...