PEAR::DB replacement class

Contents

The getOne() method

This is used the contents of a single cell of a table. For example:

<?php
    $name = $db->getOne("SELECT name FROM customers");
?>

No matter what, this function will only return the first cell of the result set.