I'm doing a CRUD and I'd like to modify the way the tables look.
Currently the code is:
<?php
$conexion = mysqli_connect( "localhost", "root", "", "bdnutriologo")or
die( "Problemas con la conexión" );
$registros = mysqli_query( $conexion, "select *
from tipo_menu")or
die( "Problemas en el select:" . mysqli_error( $conexion ) );
while ( $reg = mysqli_fetch_array( $registros ) )
{
echo "<table>";
echo "<tr><th>ID Menu:</th><td>" . $reg[ 'id_menu' ] . "</td></tr><br>";
echo "<tr><th>Comidas Diarias:</th><td>" . $reg[ 'cantidad_comidas' ] . "
</td></tr><br>";
echo "<tr><th>Nombre:</th><td>" . $reg[ 'nombre' ] . "</td></tr><br>";
echo "<tr><th>Descripcion:</th><td>" . $reg[ 'descripcion' ] . "</td></tr>
<br>";
}
mysqli_close( $conexion );
?>
And it looks like this:
I'd like it to look like this: Make it look like a list AND show the records in a single table