Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.16 KB | None | 0 0
  1. <?php
  2. $id=$_POST['id'];
  3.  
  4. include_once('config.php');
  5. $consulta="SELECT * FROM `Pelicula` peli  WHERE peli.idPelicula='$id'";
  6. //echo $consulta;
  7.  
  8. $t=$c->setQuery($consulta);
  9. $resultado=$c->loadObjectList();
  10.  
  11. foreach($resultado as $resultados){
  12. $id=$resultados->idPelicula;
  13. $nombre_pelicula= $resultados->nombre_pelicula;
  14. //print_r($resultados);
  15. }
  16.  
  17.  
  18.  
  19.  
  20.  
  21. ?>
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33. <html>
  34.  
  35.  
  36.  
  37.     <head>  </head>
  38.  
  39.  
  40.  
  41.  
  42.  
  43.     <body>
  44.  
  45.             <form method ="POST" name ="Formulario_ingreso_cliente" action = "Recibe_Datos.php" />
  46.  
  47.  
  48.  
  49.           <table border="1">
  50.  
  51.                 <tr>
  52.  
  53.                     <th>SOLICITUD PELICULA<hd>  
  54.  
  55.  
  56.  
  57.             <td>Numero Cliente: <input type="text" id="idcliente" name="idcliente"></td>
  58.  
  59.             <td>Fecha: <input type="date" id="fecha" name="fecha"></td>
  60.  
  61.                 </tr>
  62.  
  63.  
  64.  
  65.  
  66.  
  67.             <tr>
  68.  
  69.             <td>Numero Pelicula: <input type="text" id="idcliente" name="idcliente"></td>
  70.  
  71.             <td>Cantidad Disponible: <input type="text" id="cantidad" name="cantidad"></td>
  72.  
  73.             <td><input type="submit" value="Revisar">  </td>
  74.  
  75.                
  76.  
  77.                 </tr>
  78.  
  79.    
  80.  
  81.      </table>
  82.  
  83.  
  84.  
  85.         </form>
  86.  
  87.  
  88.  
  89.     </body>
  90.  
  91.  
  92.  
  93. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement