Add row to table query html in php


Good day to the entire Stackoverflow community

I have a query from a database which I show in an html table with the following code:



$consulta = "Select entrada, cuenta, credito, debito From tabla";
$resultado = mysql_query ($consulta) or die ("Error en consulta:".mysql_error());

while ($fila = mysql_fetch_array($resultado))

    <td><?php echo $fila["entrada"]; ?></td>
    <td><?php echo $fila["cuenta"]; ?></td>
    <td><?php echo $fila["credito"]; ?></td>
    <td><?php echo $fila["debito"]; ?></td>

I need to create an additional row for each input change in which I generate something similar to the image:

I appreciate your comments.

asked by Uriel Hernandez 23.11.2018 в 01:01

0 answers