节点
?>
</table>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</center>
</div>
</body>
</html>
<?/* 表结构的设计
由于是测试表设计得非常的简单:
create table test (
id mediumint(8) unsigned not null auto_increment, #流水号
departmentid varchar(100) not null default '', #单位代号
departmentname varchar(100) not null default '', #单位名称
key id (id)
)
数据插入的代码我在这里就不那出来给大家了(很容易写,相信大家都能写出来)
数据表的规则为:
001为第一级(如果999个不够,请自行添加)
001001为001的第一个子节点,001002为001的第二个子节点
001001001为001001的第一个子节点,以此类推……
我这里只设置了一个"祖宗"(001),所以在程序中就直接调用了,可根据需要自己来设置,并对代码作简单的修改即可!
好了,就到这里了,如果大家有问题欢迎和我探讨!最好祝大家今天工作愉快!
先吸颗烟在睡觉!好累!(因为刚刚写了一个webftp,如果哪位兄弟姐妹需要请mail我)
*/
?>
?>
</table>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</center>
</div>
</body>
</html>
<?/* 表结构的设计
由于是测试表设计得非常的简单:
create table test (
id mediumint(8) unsigned not null auto_increment, #流水号
departmentid varchar(100) not null default '', #单位代号
departmentname varchar(100) not null default '', #单位名称
key id (id)
)
数据插入的代码我在这里就不那出来给大家了(很容易写,相信大家都能写出来)
数据表的规则为:
001为第一级(如果999个不够,请自行添加)
001001为001的第一个子节点,001002为001的第二个子节点
001001001为001001的第一个子节点,以此类推……
我这里只设置了一个"祖宗"(001),所以在程序中就直接调用了,可根据需要自己来设置,并对代码作简单的修改即可!
好了,就到这里了,如果大家有问题欢迎和我探讨!最好祝大家今天工作愉快!
先吸颗烟在睡觉!好累!(因为刚刚写了一个webftp,如果哪位兄弟姐妹需要请mail我)
*/
?>
| 对此文章发表了评论 |
