List1
<select name="category_id">
<option value="0">ไม่มีหมวดหมู่</option>
<?
$sqlCategory="SELECT * FROM category WHERE id!=0 ORDER BY insert_date";
$resultCategory=mysql_query($sqlCategory) or die(mysql_error());
$numCategory=mysql_num_rows($resultCategory);
for($i=1;$i<=$numCategory;$i++){$rowCategory=mysql_fetch_array($resultCategory);
?>
<option value="<?=$rowCategory['id']?>"><?=$rowCategory['name']?></option>
<?
}
?>
</select>
List2
<select name="categorysub_id">
<option value="0">ไม่มีหมวดหมู่</option>
<?
$sqlCategory="SELECT * FROM categorysub WHERE catid='.$category_id.' ORDER BY insert_date";
$resultCategory=mysql_query($sqlCategory) or die(mysql_error());
$numCategory=mysql_num_rows($resultCategory);
for($i=1;$i<=$numCategory;$i++){$rowCategory=mysql_fetch_array($resu