require("include/misc.php");
conn_db();
function lettermenu($pattern) {
print("[ ");
if($pattern=="#") {
print("#");
} 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");
}
function cmpcomments($a, $b)
{
if ($a["lcom_quand"] == $b["lcom_quand"])
{
return 0;
}
return ($a["lcom_quand"] > $b["lcom_quand"]) ? -1 : 1;
}
function goodfleche($wanted,$current) {
if($wanted==$current) {
$fleche="fleche1a";
} else {
$fleche="fleche1b";
}
return $fleche;
}
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 LIKE '".$pattern."%'";
}
$query="SELECT id,name,acronym,csdb,zxdemo,web FROM groups WHERE (".$sqlwhere.") ORDER BY name";
}
$result = mysql_query($query);
while($tmp = mysql_fetch_array($result)) {
$groups[]=$tmp;
}
?>
pouet.net groups