#"); } else { printf("#",$_GET["form"],$_GET["field"]); } for($i=1;$i<=26;$i++) { if ($i==13) { print(" ]
\n"); print("[ "); } else print(" | "); if($pattern==chr(96+$i)) { print("".chr(96+$i).""); } else { printf("%s",chr(96+$i),$_GET["form"],$_GET["field"],chr(96+$i)); } } print(" ]
\n"); } if(!$pattern&&!$which) { $pattern=chr(mt_rand(96,122)); if($pattern==chr(96)) { $pattern="#"; } } if($pattern) { if($pattern=="#") { //$sqlwhere="(name LIKE '0%')||(name LIKE '1%')||(name LIKE '2%')||(name LIKE '3%')||(name LIKE '4%')||(name LIKE '5%')||(name LIKE '6%')||(name LIKE '7%')||(name LIKE '8%')||(name LIKE '9%')"; $sqlwhere="(name REGEXP '^[^a-zA-Z]')"; } else { $sqlwhere="name REGEXP '^".$pattern."'"; } $query="SELECT prods.id,prods.name,prods.type FROM prods WHERE (".$sqlwhere.") and ("; $query.="true"; $query.=") and DATE>='".$sceneorgyear."-01-01' and date<'".($sceneorgyear+1)."-01-01' ORDER BY name"; //debuglog($query); } $result = mysql_query($query); while($tmp = mysql_fetch_array($result)) { $prods[]=$tmp; } ?> pouet.net BBS :: stop writing deliberately bad code

0) $prods[$i]["platform"].=","; $check++; $prods[$i]["platform"].=$tmp["name"]; } if($i%2) { print("\n"); } else { print("\n"); } $typess = explode(",", $prods[$i]["type"]); print("\n"); } ?>

prods

no prod beginning with a yet =(

"); //print($prods[$i]["name"]."\n"); print(""); $platforms = explode(",", $prods[$i]["platform"]); for($kkk=0;$kkk
"); for($k=0;$k"); } print("

".strtolower(stripslashes($prods[$i]["name"]))."
  )">