Can anyone please tell me , how to fetch names from mysql through php and then put all those names in hmtl select tag for user to choose one name
3 Answers
Check here.
Hints are
// sql connection here
$query="SELECT * FROM emp";
$result=mysql_query($query);
while($r=mysql_fetch_array($result)
{
echo $r[0];
// all the row that u want to fetch
}