• <legend id='dnZSu'><style id='dnZSu'><dir id='dnZSu'><q id='dnZSu'></q></dir></style></legend>

        <bdo id='dnZSu'></bdo><ul id='dnZSu'></ul>

    1. <i id='dnZSu'><tr id='dnZSu'><dt id='dnZSu'><q id='dnZSu'><span id='dnZSu'><b id='dnZSu'><form id='dnZSu'><ins id='dnZSu'></ins><ul id='dnZSu'></ul><sub id='dnZSu'></sub></form><legend id='dnZSu'></legend><bdo id='dnZSu'><pre id='dnZSu'><center id='dnZSu'></center></pre></bdo></b><th id='dnZSu'></th></span></q></dt></tr></i><div id='dnZSu'><tfoot id='dnZSu'></tfoot><dl id='dnZSu'><fieldset id='dnZSu'></fieldset></dl></div>

        <tfoot id='dnZSu'></tfoot>

        <small id='dnZSu'></small><noframes id='dnZSu'>

        PHP:使用 optgroup 动态下拉

        时间:2023-10-03
          <tbody id='wQSXy'></tbody>

        <tfoot id='wQSXy'></tfoot>

          <small id='wQSXy'></small><noframes id='wQSXy'>

          <i id='wQSXy'><tr id='wQSXy'><dt id='wQSXy'><q id='wQSXy'><span id='wQSXy'><b id='wQSXy'><form id='wQSXy'><ins id='wQSXy'></ins><ul id='wQSXy'></ul><sub id='wQSXy'></sub></form><legend id='wQSXy'></legend><bdo id='wQSXy'><pre id='wQSXy'><center id='wQSXy'></center></pre></bdo></b><th id='wQSXy'></th></span></q></dt></tr></i><div id='wQSXy'><tfoot id='wQSXy'></tfoot><dl id='wQSXy'><fieldset id='wQSXy'></fieldset></dl></div>
            <legend id='wQSXy'><style id='wQSXy'><dir id='wQSXy'><q id='wQSXy'></q></dir></style></legend>
                <bdo id='wQSXy'></bdo><ul id='wQSXy'></ul>

                1. 本文介绍了PHP:使用 optgroup 动态下拉的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我正在开发一个下拉菜单,它使用 HTML optgroups 作为员工所属的组名称.这是 MySQL 查询和输出:

                  <前>mysql> SELECT 雇员.emp_id,employees.empname,employees.grp_id,groups.groupname FROM 雇员离开加入组在雇员.grp_id = groups.grp_id 上按组名 asc 排序;+--------+------------+--------+-----------+|emp_id |员工姓名 |grp_id |组名 |+--------+------------+--------+-----------+|20 |员工 2 |13 |第 1 组 ||19 |员工 1 |13 |第 1 组 ||21 |员工 3 |14 |第 2 组 |+--------+------------+--------+-----------+3 行(0.00 秒)

                  唯一的问题是,我最难弄清楚如何让 optgroup 正常工作.我已经尝试了无数次,它真的开始让我感到沮丧.以下几乎是我想要的输出(示例):

                    <bdo id='xs2XF'></bdo><ul id='xs2XF'></ul>

                    <i id='xs2XF'><tr id='xs2XF'><dt id='xs2XF'><q id='xs2XF'><span id='xs2XF'><b id='xs2XF'><form id='xs2XF'><ins id='xs2XF'></ins><ul id='xs2XF'></ul><sub id='xs2XF'></sub></form><legend id='xs2XF'></legend><bdo id='xs2XF'><pre id='xs2XF'><center id='xs2XF'></center></pre></bdo></b><th id='xs2XF'></th></span></q></dt></tr></i><div id='xs2XF'><tfoot id='xs2XF'></tfoot><dl id='xs2XF'><fieldset id='xs2XF'></fieldset></dl></div>

                            <legend id='xs2XF'><style id='xs2XF'><dir id='xs2XF'><q id='xs2XF'></q></dir></style></legend>