require("include/top.php");
$query="SELECT type,img,url,alt FROM buttons WHERE dead = 0 ORDER BY type,RAND()";
$result=mysql_query($query);
while($tmp=mysql_fetch_array($result)) {
$buttons[]=$tmp;
}
?>
=$buttons[$i]["type"]?> |
---|
endif; ?> | if($buttons[$i]["type"]!=$buttons[$i+1]["type"]): ?>