$r=open_database("freqwatch", "select count(id) as tot,freq from freqs group by freq asc");
$num=mysql_numrows($r);
$skipper=50;
while ($i<$num) {
$tot=mysql_result($r,$i,"tot");
$freq=mysql_result($r,$i,"freq");
#if ($skipper==50) {
$labels=$labels.'"'.$freq.'",';
# $skipper=0;
#} else {
# $labels=$labels.'" ",';
#}
$data=$data.'"'.$tot.'",';
$i++;
#$skipper++;
#echo $freq;
}
$labels=rtrim($labels,',');
$data=rtrim($data,",");
#$num=150;
?>