Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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 );
- ?>
Add Comment
Please, Sign In to add comment