De sub-categorie $MyInfo[1] / $MyInfo[2] werd succesvol verwijderd."; } } $q1 = "select * from oneshop_categories order by CategoryName "; $r1 = mysql_query($q1) or die(mysql_error()); if(mysql_num_rows($r1) == '0') { echo "
Er zijn geen sub-categories aanwezig...
"; exit(); } else { while($a1 = mysql_fetch_array($r1)) { $q2 = "select * from devbg_subcategories where CategoryID = '$a1[CategoryID]' order by SubcategoryName "; $r2 = mysql_query($q2) or die(mysql_error()); while($a2 = mysql_fetch_array($r2)) { $OptionsList .= "\n\t"; } } if(empty($OptionsList)) { echo "
U heeft geen sub-categories...
"; exit(); } echo "
\n\n
\n\nSelecteer een sub-categorie:"; echo "\n"; echo "\n\n"; echo "
Alle producten in de geselecteerde sub-categorie zullen verwijderd worden!
"; } ?>