You can solve your problem by using Jquery
Give id to each element which holds id like
<table>
<tr id="r1">
<td id="idn1">1</td>
<td>Hoffman</td>
<td>Tatyana</td>
<td>100</td>
<td onclick="update('idn1',1)">Update</td>
</tr>
<tr id="r1">
<td id="idn2">2</td>
<td>Atkins</td>
<td>Ishmael</td>
<td>44</td>
<td onclick="update('idn2',2)">Update</td>
</tr>
...
...
...
...
...
</table>
Now write the javascript function
function update(idn,n)
{
cid=$('#'+idn).val();
$.post("your_next.php?idn="+cid,function(data){
$("r"+n).html(data);
});
}
In "your_next.php" you have the id to whom you want to update values.....