Function Reference / select_result

Selects one of the current result set so that it's data can be retrieved via vals or val.

OVERVIEW

PHParray zestoi_select_result(string $type, integer $count)
SMARTY{select result var=NAME module=TYPE}

EXAMPLES

PHP

zestoi_select_result returns an array() containing all data so you can either use that array or subsequently call zestoi_val.

$max = zestoi_val('matches');

for ($i=0; $i<$max; $i++)
{
$vals = zestoi_select_result('webcams', $i);

// example using the returns array()
echo "name=" . $vals['name'];

// example using zestoi_val()
echo "age=" . zestoi_val('age');
}

RELATED FUNCTIONS