(view)
array o2view_fetch(string $view_name)
Creates a query statement and executes records fetching on it.
This function allows fetching records one-by-one from a Janox view and returns each one as an array, in the form:
array('FIELD_NAME1' => $vield_value1,
'FIELD_NAME2' => $vield_value2,
...,
'FIELD_NAMEn' => $vield_valueN)
NOTE: fields names are always uppercase.
This function can be used in this way:
while($record = o2view_fetch($view_name)) {
$field = $record['FIELD'];
}
NOTE: If you unexpectedly stop fetching or you need to reset fetching, consider using o2view_fetch_free() to reset the statement.