= '$todaydate' and `id` > '1' ORDER BY `startdate` ASC LIMIT 0,1"; $result = mysql_query($sql) or die('Error, Query Failed ' . mysql_error()); if(mysql_num_rows($result)==1){ while($row = mysql_fetch_array($result)){ $id = $row['id']; $startdata = $row['startdate']; } $sql1 = "SELECT * FROM `friendster_ind_icon` WHERE `startdate` >= '$startdata' and `id` = '$id' ORDER BY `startdate` ASC LIMIT 0,1"; $result1 = mysql_query($sql1) or die('Error, Query Failed1 ' . mysql_error()); while($row1 = mysql_fetch_array($result1)){ $ev1 = $row1['event1']; $ev2 = $row1['event2']; $ev3 = $row1['event3']; $ev4 = $row1['event4']; } }else{ $sqlcat = "SELECT * FROM `friendster_ind_icon` WHERE `id`='1'"; $resultcat = mysql_query($sqlcat) or die('Error, query failed ' . mysql_error()); while($rowi = mysql_fetch_array($resultcat)){ $ev1 = $rowi['event1']; $ev2 = $rowi['event2']; $ev3 = $rowi['event3']; $ev4 = $rowi['event4']; } } ?>
Welcome to Wonder Icons  :  Friendster Icons

Featured Icon Categories

Icons Icons Icons Icons


   Free Icons
".$rowcat[cat_name]." ".Icons.""; //$cats = substr($cats, 0, strlen($cats)-2); //echo $cats.""; ?>


   Holidays Icons
".$rowcats[sub_cat_name]." ".Icons.""; //} //$catss = substr($catss, 0, strlen($catss)-2); //echo "".$catss.""; ?>