Home  >  Q&A  >  body text

php页面,下拉框二级联动,如何从数据库读取数据填入

尤其,第二个下拉框是根据第一个下拉框变化的
求大神给实例啊~~

phpcn_u700phpcn_u7002793 days ago930

reply all(2)I'll reply

  • 数据分析师

    数据分析师2017-10-01 00:32:08

    php page, drop-down box secondary linkage, how to read data from the database and fill it in-PHP Chinese website Q&A-php page, drop-down box secondary linkage, how to read data from the database and fill it in-PHP Chinese website Q&A

    Let’s watch and learn.

    reply
    0
  • 巴扎黑

    巴扎黑2017-02-25 10:15:34

    上面说的没错。具体流程如下:一级下拉框选择其中一个值时,触发事件,通过ajax讲选择的值进行sql查询,将返回的结果通过js写入到第二级下拉框中

    reply
    0
  • Cancelreply