Add row to table query html in php

0

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:

<table>
  <tr>
    <td>entrada</td>
    <td>cuenta</td>
    <td>credito</td>
    <td>debito</td>
  </tr>

<?php


$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))
{
?>

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

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
source

0 answers