";
$results=mysql_db_query("$db","select * from `idols` where (type='Country' or type='Both') order by name");
while ($row = mysql_fetch_array ($results)) {
$idate="".$row["date"]."";
if($cnt == "4"){echo" "; $cnt=0; }
if($rowcnt == "13"){ echo"| "; include('banners/rec.dat'); echo" | "; $cnt=3;}
echo"\n![\"".$row["name"]."](\"/sgpics/".$row["dir"].".jpg\") ".$row["name"]."";
if($rowcnt == "15"){ $cnt=3; }
if($idate < $then){
echo"";
}else{
echo" RECENTLY UPDATED";
}
echo"
\n | ";
$cnt++;
$rowcnt++; }
echo"
| ";
echo"";
$results=mysql_db_query("$db","select * from `idols` where (type='Country' or type='Both') order by name");
while ($row = mysql_fetch_array ($results)) {
$idate="".$row["date"]."";
echo" ".$row["name"]." \n";
}
echo" |