WebBasic CMS
References

wbItemList()

list items from table

wbItemList(string $table ,string $where , string $sort )

Function designed to read a list of entries contained in table database. The function return array with list of records. In case of failure, will returns NULL .

Arguments:

$table
name of the table contains the dataset
$where
condition of sampling
$sort
sorting order

Example :

<?php 
$Item=wbItemList("pages", 'active = "on" AND id >= "a"', "id:d"); 
if ($Item==null) { 
   echo "Error"; 
} else { 
   print_r($Item); 
} 
?>