What\'s the best way with PHP to read a single record from a MySQL database? E.g.:
SELECT id FROM games
I was trying to find an answer in t
I really like the philosophy of the ezSQL database library, which wraps the native SQL methods in an easier-to-use interface.
Fetching a single value from the database is trivial:
$id = $db->get_var("SELECT id FROM games WHERE ...");
It also makes it easy to fetch a single row, column, or set of rows.