Linha de linhas dinâmica ao buscar registros do banco de dados

Ename   Sal      
tom     100
tom     200
bill    100
bill    250
bill    450
bill    400

sta é a estrutura de consulta e html que forneceu a saída acim

<?php 
$sql = "select * from emp ";
$result= mysql_query($sql);
while($row=mysql_fetch_array($result))
{
  <tr >
    <td rowspan=""  ><?php echo $row['ename']; ?></td>
    <td><?php echo $row['esal']?></td>
  </tr>
  <? }?>

Como posso obter a seguinte saída:

Ename   Sal      
tom     100
        200
bill    100
        250
        450
        400

questionAnswers(4)

yourAnswerToTheQuestion