This is the code I want to update, it's from an sql query:
$cadbusca="select * FROM tb_ventas_dt WHERE id_venta='".$_SESSION['VENTA_ID_FOLIO']."'";
$rs = @mysql_query($cadbusca);
$rows = @mysql_num_rows($rs);
<table id="tableconcep" border="1" class="table">
<th>#</th>
<th>Concepto</th>
<th>Costo</th>
<?while ($registro=@mysql_fetch_array($rs) ){
echo "<tr>";
echo "<td class=\"center\"><button type=\"button\" class=\"btn btn-primary\" data-toggle=\"modal\" data-target=\".bd-example-modal-sm\">".$registro['cantidad']."</button> </td>";
echo "<td class=\"center\">".$registro['producto_ds']." </td>";
echo "<td class=\"center\"> ".$registro['total']." </td>";
echo "</tr>";
}?>
</table>
And when I click on an element I want to update the records