Home > Backend Development > PHP Tutorial > php 修改时读取下拉选择框的为数据库的默认值 问题!

php 修改时读取下拉选择框的为数据库的默认值 问题!

WBOY
Release: 2016-06-23 14:14:23
Original
1071 people have browsed it

PHP 读取selete下拉框



这个我已经添加到数据记录集里面了,我不明白的是
当我点进入击修改页面时,下拉选择框的值从数据库里循环的取出来,当前的值是什么,进入修改下拉选择框默值就是什么?比如:当前值是‘国际博览’当我点击修改时,下拉框的值默认就是“国际博览”,我是菜鸟搞了一下午没弄好,请大家帮帮忙哦!谢谢了!

回复讨论(解决方案)

不太明白哦 能详细一点吗

php select,radio和checkbox默认选择的实现方法

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template