The sql_fetsel
function returns the first row of results for a selection. It accepts the same parameters as the sql_select()
function and is a short-cut for the combined call of sql_select()
and sql_fetch()
.
Its parameters are:
-
$select
, -
$from
, -
$where
, -
$groupby
, -
$orderby
, -
$limit
, -
$having
, -
$serveur
, -
$option
.
It is used as shown below:
$r = sql_fetsel('colonne', 'table');
// $r['colonne']