[php]<?php
//connecting to the database and running query
$dbc=mysqli_connect(‘localhost’,‘root’,’’,‘sam_telephone’);
$get_list_sql=“SELECT id, CONCAT_WS(’,’, l_name, f_name) AS display_name FROM
master_name;”;
$get_list_res= mysqli_query($dbc, $get_list_sql);
?>
[/php]
it’s like telephone directory, in drop down menu, its show the people who are in the data table.
what i want to do is to select the people from drop down menu and when i click on the submit button, it should show me the result for that particular person