![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
31/08/2015, 12:51
|
![Avatar de joseanguiano](http://static.forosdelweb.com/customavatars/avatar576267_2.gif) | | | Fecha de Ingreso: agosto-2015 Ubicación: Coatzacoalcos
Mensajes: 87
Antigüedad: 9 años, 5 meses Puntos: 1 | |
Multi query en php tengo una duda con este codigo no puedo llamar a 2 procedimientos almacenados a la vez me ejecuta uno pero el segundo codigo no lo puede ejecutar alguien sabe que error de sintaxis tengo les muestro el codigo
<?php
require('conexion.php');
$query = mysqli_query($mysqli,"call PA_selecionarentrad('clave_t_e','fecha_entrada')") ;
$query = mysqli_query($mysqli,"call PA_seleccionarsalida('clave_t_s','fecha_salida')") ;
//if (!$query){echo "Fallo la Consulta" ;}else{echo "Consulta con exito";}
?>
<html>
<body>
<br></br>
<br></br>
<center>
<h2> </h2>
<b></b>
</center>
<table width="30%" align="50%">
<tr>
<td colspan="2" align="center"> <p><strong>Registros de Entrada</strong></p>
<p> </p></td>
</tr>
<tr>
<td width="177"><center><b>Matricula</b></center></td>
<td width="177"><center><b>Fecha</b></center></td>
</tr>
<tbody>
<?php while($row=$query->fetch_assoc()){ ?>
<tr>
<td><center><?php echo $row['clave_t_e'];?>
</center></td>
<td><center><?php echo $row['fecha_entrada'];?>
</center></td>
<?php } ?>
<?php while($row=$query->fetch_assoc()){ ?>
<tr>
<td><center><?php echo $row['clave_t_s'];?>
</center></td>
<td><center><?php echo $row['fecha_s'];?>
</center></td>
<?php } ?>
mi error es en la linea de
<?php while($row=$query->fetch_assoc()){ ?>
__________________ Lo fácil, ya lo hice, lo difícil lo estoy haciendo y lo imposible, me tardare pero lo lograre. |