"; } ?> "; ?>
0){ if(strlen($AllowSites[$i]) < 1){ $AllowSites[$i] = "N"; } if(strlen($ShowSiteCount[$i]) < 1){ $ShowSiteCount[$i] = "N"; } $insert = sql_query(" insert into $tb_categories ( ID, Category, PID, Children, TopChildren, AllowSites, ShowSiteCount, Description ) values ( '', '$Category[$i]', '$PID[$i]', '$Children[$i]', '$TopChildren[$i]', '$AllowSites[$i]', '$ShowSiteCount[$i]', '$Description[$i]' ) "); echo "Category " . $Category[$i]; echo " has been added.
\n"; } } } else { $num_rows = count($Category); for($i = 0;$i < $num_rows;++$i){ if(strlen($Category[$i]) > 0){ if(strlen($AllowSites[$i]) < 1){ $AllowSites[$i] = "N"; } if(strlen($ShowSiteCount[$i]) < 1){ $ShowSiteCount[$i] = "N"; } $insert = sql_query(" insert into $tb_categories ( ID, Category, PID, Children, TopChildren, AllowSites, ShowSiteCount, Description ) values ( '', '$Category[$i]', '0', '$Children[$i]', '$TopChildren[$i]', '$AllowSites[$i]', '$ShowSiteCount[$i]', '$Description[$i]' ) "); echo "Category ".$Category[$i]." has been added.
\n"; } } } ?>
Insert Categories into
Click Here to Continue.
# of fields:
Category Name:
Description:

Hint: If you want to hand pick your sub categories, create the nescessary html and enter it for the description. Then pick "Desc" as your Children Categories Option below.
Children Categories Options:
Viewable Children Categories:
Allow Site submissions to this Category:
Show Site Count for this Category: