一个很傻的无限分类(5)
<div class="msg-box">
<ul class="viewmess">
<li class="light-row">
<span class="col_width">上级栏目</span>
<select name="flpid">
<option value="0">请选择分类</option>
<?php
$sql="SELECT*FROM fenlei where flpid=0"; //一个很傻的无限分类
$rs=mysql_query($sql);
while ($row=mysql_fetch_array($rs)) { var_dump($row);
echo "<option value=\"$row[flid]\">$row[fltitle]</option>";
$sql="select*from fenlei where flpid=$row[flid]";
$rs_son=mysql_query($sql);
while($row_son=mysql_fetch_array($rs_son)){
echo "<option value=\"$row_son[flid]\"> $row_son[fltitle]</option>";
}
}
?>
</select>
</li>
<li class="dark-row">
<span class="col_width">栏目名称<span class="red_font">*</span></span>
<input type="text" class="text-box" name="title" maxlength="30" size="20" >
</li>
<li class="light-row">
<span class="col_width" style="margin-top:30px">栏目描述</span>
<textarea class="text-box" name="des" cols="30" rows="5"></textarea>
</li>
<li class="light-row">
<span class="col_width"> </span>
<input type="hidden" name="action" value="add">
<input type="submit" class="button" name="mod" value="添加分类">
<input type="reset" class="button" value="重 置">
相关新闻>>
- 发表评论
-
- 最新评论 更多>>