Web Technology II20795 marksDatabase querying and SQL execution
How can you query a database in PHP?
How can you query a database in PHP? [5]
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...