This is code of my Table in PHP. I want to fetch other details from different 2 tables using AJAX in PHP. i am using mysql.I want to show details in table when i select any value from dropdown. Help me please.. I tried so much time but i am not success.
My code is given below.
<td>
<?php
$query = "select * from table_name order by name ASC ";
$result= mysql_query($query);
echo '<select name="id">';
echo '<option value="">---Select Employee---</option>';
while ($row=mysql_fetch_array($result))
{
?>
<option value="<?php echo $row['id']; ?>"> <?php echo ucfirst($row['name']); ?></option>
<?php
}
echo "</select>";
?>
</td>