使用PHP mysql使用combobox创建动态表单表
我想尝试使用combobox创建动态表单表。但combobox无法显示指定id所在位置的所有记录 我的数据库包含2个表: 表_类使用PHP mysql使用combobox创建动态表单表,php,mysql,combobox,dynamicform,Php,Mysql,Combobox,Dynamicform,我想尝试使用combobox创建动态表单表。但combobox无法显示指定id所在位置的所有记录 我的数据库包含2个表: 表_类 | id_class| name | ------------------- | 1 | A | | 2 | B | | 3 | C | 表\u学生 | id_student | name | id_class | -------------------------------- | 1
| id_class| name |
-------------------
| 1 | A |
| 2 | B |
| 3 | C |
表\u学生
| id_student | name | id_class |
--------------------------------
| 1 | Sarah | 1 |
| 2 | Joe | 1 |
| 3 | Yuri | 2 |
| 4 | Andy | 2 |
| 5 | Sam | 3 |
| 6 | Oliv | 3 |
*id_类是外键
我想要的结果是一个表单界面,如图所示:
但我的代码结果不是我想要的,combobox不能显示指定id所在位置的所有记录
等级
学生
您声明希望“我想尝试制作动态表单表”。。。。。。。。。。你尝试过什么?你的代码在哪里?仍然没有代码。请出示您的密码。(html、php和Mysql)抱歉,如果我的提问方式出错,我的问题已被编辑