DB::getOne()

DB::getOne() -- Fetch the first column of the first row from a query

Description

mixed &getOne (string $query [, array $params])

Fetch the first column of the first row of data returned from a query. Takes care of doing the query and freeing the results when finished.

Parameter

Returns