<?php
$min_age=17;
$max_age=35; //minimum and maximum age in the db table as well
$htmsAgeTable=array();
for ($i=$min_age;$i<=$max_age;$i++)
{
//$row=$res->fetch_array();
//$htmsAgeTable[$i]=$row['value'];
$htmsAgeTable[$i]=2*$i;
}
echo $htmsAgeTable[30];
?>