Advertisement
Guest User

Untitled

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