摘要: <html><head></head><body><form name="myform" enctype="multipart/form-data" action="index2.php" method="post"> 兴趣爱好:<input type="checkbox" name="hobby[]" value="阅读"/>阅读 &nbsp;&nbsp;&n 阅读全文
posted @ 2013-01-18 14:35 /折磨 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 大概步骤如下:首先到数据库取数据,放到一个数组,然后把数据转化为一个树型状的数组,最后把这个树型状的数组转为html代码。也可以将第二步和第三步合为一步。详细如下:1。数据库设计:脚本如下:CREATETABLE`bg_cate`(`cate_Id`int(30)unsignedNOTNULLAUTO_INCREMENT,`cate_ParentId`int(30)unsignedDEFAULT'0',`cate_Name`varchar(100)NOTNULL,`cate_Intro`varchar(500)DEFAULTNULL,`cate_Order`int(30)uns 阅读全文
posted @ 2013-01-18 10:40 /折磨 阅读(236) 评论(0) 推荐(0) 编辑