PEAR Handbuch | ||
---|---|---|
Zurück | Nach vorne |
Fetch the first row of data returned from a query. Takes care of doing the query and freeing the results when finished.
Parameter
$query - the SQL query
$params - if supplied, prepare/execute will be used with this array as execute parameters
$fetchmode - the fetch mode to use, default is DB_FETCHMODE_DEFAULT
Returns
mixed - the first row of results as an array indexed from 0 or a DB_Error when fail
Zurück | Zum Anfang | Nach vorne |
DB::getOne() | Nach oben | DB::getCol() |