> BUT how can i make the function loop through the whole > result? > > ----------------------------------- > if (mysql_num_rows($result3) > 0) > { > $test = mysql_fetch_array($result3); > echo minnum($test); > } > > -------------------------------------- >
Someone will probably come up with something a little cleaner, but quick and dirty... if (mysql_num_rows($result3) > 0) { while ($row = mysql_fetch_array($result3)){ $min[] = minnum($test); } $overall_min = minnum($min); } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php