Onbekend |
|
Echo'<div align="right">Opties: <a href="nieuw.php?catid='.$_GET['id'].'">Nieuw Topic</a> || Navigatie: ';
Echo"<select name='cat' id='cat' onchange=\"window.location=('index.php?actie=forum&id='+this.options[this.selectedIndex].value)\">";
$sl = mysql_query("SELECT naam, id FROM forum_cats");
While($list = mysql_fetch_object($sl)){
Echo '<optgroup label="'.$list->naam.'">';
$azazazaz = mysql_query("SELECT id, naam FROM forum_sub_cats WHERE catid = '".$list->id."'");
While($shaow = mysql_fetch_assoc($azazazaz)){
Echo '<option value="'.$shaow[id].'">'.$shaow[naam].'</option>';
}
Echo '</optgroup>';
}
Echo'</select>';
Echo'</div>';
Echo'<div align="right">Opties: <a href="nieuw.php?catid='.$_GET['id'].'">Nieuw Topic</a> || Navigatie: '; Echo"<select name='cat' id='cat' onchange=\"window.location=('index.php?actie=forum&id='+this.options[this.selectedIndex].value)\">"; Echo '<optgroup label="'.$list->naam.'">'; $azazazaz = mysql_query("SELECT id, naam FROM forum_sub_cats WHERE catid = '".$list->id."'"); Echo '<option value="'.$shaow[id ].'">'.$shaow[naam ].'</option>'; } }
|