UID:134
UID:2
<select name="tid" id="tid"> <option value="0" >==请选择==</option> <?php $sql="select id,title from your_table order by id desc "; $query = mysql_query($sql); $num =myql_num_rows($query); if($num==0) { echo "\n"; } else { while($rs=$db->fetch_array($query)) { echo "\n<option value=\"".$rs['id']."\" >".$rs['title']."</option>\n"; } } ?> </select>
UID:148