How to Create a Dynamic Drop Down List in PHP populated from MySQL Database

后端 未结 5 453
一个人的身影
一个人的身影 2020-12-12 07:01

I am trying to create a dynamic drop down list using PHP and mysql database. I have written the following code and its giving me the output, but the problem is that its show

5条回答
  •  一向
    一向 (楼主)
    2020-12-12 07:24

    You may try it

        $select_query=          "Select name from category";
        $select_query_run =     mysql_query($select_query);
        $select_query_array=   mysql_fetch_array($select_query_run)
        $select = "";
    
        echo $select;
    

    Hope It will work

提交回复
热议问题