this is a nice pear db query which returns an associative array

$data = $sqlconnectionobject ->getAssoc(‘sql statement here’,true, array(), DB_FETCHMODE_ASSOC, true);

if (PEAR::isError($data)) {
die($data->getMessage());
}

Leave Comment