Ver Mensaje Individual
  #2 (permalink)  
Antiguo 25/05/2015, 08:41
karliokre
 
Fecha de Ingreso: enero-2015
Mensajes: 3
Antigüedad: 9 años, 3 meses
Puntos: 0
Respuesta: Como podria mostrar 3 funciones en una pagina

<?php
session_start();
include_once ("GestionarBD.php");
include_once ("GestionarCamarero.php");

if (isset($_SESSION["formulario3"])) {
$formulario3 = $_SESSION["formulario3"];
unset($_SESSION["formulario3"]);
unset($_SESSION["errores3"]);
} else
Header("Location:Pedido.php");
$conexion = conectarBD();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">

<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
Remove this if you use the .htaccess -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

<title>Registro del pedido</title>
<meta name="description" content="">
<meta name="author" content="Jesus Escobar">

<meta name="viewport" content="width=device-width; initial-scale=1.0">

<!-- Replace favicon.ico & apple-touch-icon.png in the root of your domain and delete these references -->
<link rel="shortcut icon" href="/favicon.ico">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel= "stylesheet" type= "text/css" href="index.css" media="screen">
</head>
<body>
<?php if(insertarPedidoPlato($formulario3["plato"],$formulario3["precio"],$conexion)){

?>


<div id="div_exito">
<p>El plato es:</p>
<h1><?php echo $formulario3["plato"]
?>
<p> Precio: </p>
<?php echo $formulario3["precio"]
?>€
<?php }else{

?>

<p> Error en el plato</p>
<?php }?>
<?php if(insertarPedido($formulario3["camarero"],$formulario3["mesa"],$formulario3["cantidad"],$conexion)){?>
<h1>Camarero:</h1>
<?php echo $formulario3["camarero"]?>
<h1>Mesa del pedido: </h1>

<h1><?php echo $formulario3["mesa"]?> </h1>
<h1> cantidad: </h1>
<h1><?php echo $formulario3["cantidad"]?> </h1>
<?php }else{?>

<p>Error en el pedido</p>
<?php }?>

<?php if(insertarPedidoFormadoPor($conexion)){?>
<p> Muchas gracias por registrar el pedido </p>
Pulsa <a href="EntradaCamarero.php">aquí</a>
para ver el pedido
<?php }else{?>
<p> Error en la ejecuccion</p>
<?php } ?>










</body>
</html>
<?php desconectarDB($conexion);