Display Mysql table field values in Select box

前端 未结 6 1287
失恋的感觉
失恋的感觉 2021-02-06 06:16

I want to display the Mysql table Filed values in selectbox. I tried the following code to display. But it normally display the specified field values in echo function and not i

6条回答
  •  你的背包
    2021-02-06 06:53

    You can easily do it like this

    $con = mysql_connect("localhost","root","root");
    $db = mysql_select_db("Time_sheet",$con);
    $get=mysql_query("SELECT Emp_id FROM Employee");
    
    
    
    

提交回复
热议问题