PHP-Code:
for ($n=1;$n<=$rang_count-1;$n++){
$sql = "SELECT * FROM $members WHERE katid='$cat[id]' AND rang='$n' OR squad='$inhalt[id]' AND squadrang='$n' ORDER BY ID";
$result = mysql_query($sql);
...
while ($member = mysql_fetch_array ($result)){ ...
Kommentar