下拉菜单-求php两个下拉列表联动解决办法.
程序员文章站
2024-04-03 22:35:46
...
php下拉菜单数据库
echo "-请选择- ";
@include "conn.php"; //链接数据库
$gzh_num_result=mysql_query("select gzh_num , gzh_name from gongzhong where gzh_renum=0 order by gzh_num ;");
while($gzh_num_row=mysql_fetch_array($gzh_num_result))
{
list($gzh_num,$gzh_name)=$gzh_num_row;
选择科室后,对应员工姓名根据选择的科室获取,怎么做到。
两个列表的代码:
```
echo "-请选择- ";
@include "conn.php"; //链接数据库
$gzh_num_result=mysql_query("select gzh_num , gzh_name from gongzhong where gzh_renum=0 order by gzh_num ;");
while($gzh_num_row=mysql_fetch_array($gzh_num_result))
{
list($gzh_num,$gzh_name)=$gzh_num_row;
echo ""; // echosuboption($gzh_num,@$_GET['gzh_num']);};?>
上一篇: ORA-03113错误解决实例
下一篇: pymongo教程(1)概述