Populate a Drop down box from a mySQL table in PHP

后端 未结 7 818
温柔的废话
温柔的废话 2020-11-27 05:40

I am trying to populate a Drop down box from results of a mySQL Query, in Php. I\'ve looked up examples online and I\'ve tried them on my webpage, but for some reason they j

7条回答
  •  盖世英雄少女心
    2020-11-27 05:50

    You will need to make sure that if you're using a test environment like WAMP set your username as root. Here is an example which connects to a MySQL database, issues your query, and outputs tags for a "; ?>

提交回复
热议问题