The sql_allfetsel() functions retrieves an array with all of the results of a selection. It accepts the same parameters as the sql_select() function and is a combined short-cut to replace calling sql_select() and sql_fetch_all(). As it stores all of the results in a PHP array, be careful not to exceed the memory limit allowed to PHP if you are dealing with large data volumes.
It accepts 9 parameters:
-
$select, -
$from, -
$where, -
$groupby, -
$orderby, -
$limit, -
$having, -
$serveur, -
$option.
The sql_allfetsel() function is used as shown below:
$all = sql_allfetsel('column', 'table');
// $all[0]['column'] is the column in the first line retrieved