Firefox 3
Quick navigation:

ptb_min

Finds the smallest numeric value in given field. (For the biggest value, use ptb_max.)

Syntax

$var = ptb_max($database, $fieldname);

Syntax description

$database
variable containing connected database
$fieldname
name of the field, for which the smallest value should be found

Return

This function returns integer when used on field with numeric value or null if database is empty.

Sample(s)

$firstYear = ptb_min($myDatabase, 'year');