html
野泽雅子
这个作者很懒,什么都没留下…
展开
-
php while循环 selecrt下拉框 option默认选中
<?php $sql = "SELECT id FROM signinconfday "; $res = mysql_query($sql, $news); while ($date = mysql_fetch_assoc($res)) { ?> <option value=<?php echo $date['id'] ?> <?php if ($date['id'] =="参数二") {echo "selected=\"selected\"";} .原创 2020-07-31 16:43:33 · 9402 阅读 · 0 评论 -
php 输出html 总结
while($row = $result->fetch_assoc()) { echo "<a href={$row['link']} title=''> {$row['name']}</a></br>"; }原创 2020-06-29 20:35:41 · 11050 阅读 · 0 评论