If you write a system, you will often use the column management
Column Classification Multi-level more need to achieve unlimited class classification, the code is as follows
One, the use of the drop-down menu
/* Infinite class * * logical recursive Get type *hid ancestor column ID *step subordinate column prefix *tid seleted option ID */function logicgettypelist ($datatable = ' Lanmu_class ', $hid =0, $step = ", $tid =-1) {static $TypeList ="; $query = "select * from ' $datatable ' WHERE heid= $hid ORDER by px ASC"; $arrs =m Ysql_query ($query), while ($row = @mysql_fetch_assoc ($arrs)) {echo $step; $TypeList. = ("". $step. $row [' class ']." \ r \ n "); Category name Logicgettypelist ($datatable, $row [' id '], $step. '--', $tid);} return $TypeList;}
Second, column management
The code is probably as follows and needs to be modified according to the situation
"Size=" 3 " echo $row [' id '];? >,this.value) "/>" "> Edit" "'}" > Delete "" "> Picture Set"
The above introduces the implementation of PHP Unlimited class classification, including PHP, infinite level of content, I hope that the PHP tutorial interested in a friend helpful.