Every now and then, I get into a situation when I have a query similar in kind to:
SELECT `key`, `value` FROM `settings`;
In this case, I w
$query = $db->query("SELECT `name` AS name, `value` AS value FROM `settings`;"); $result = $query->fetchAll(PDO::FETCH_ASSOC);