PHP - ERROR AL REALIZAR PROCEDIMIENTO ALMACENADO DENTRO DE OTRO

 
Vista:
Imágen de perfil de Gerson

ERROR AL REALIZAR PROCEDIMIENTO ALMACENADO DENTRO DE OTRO

Publicado por Gerson (3 intervenciones) el 31/01/2016 22:15:47
ESTIMADOS UN GUSTO MOSTRARLE MI PROBLEMA.

AL REALIZAR UN BUCLE MOSTRANDO LOS DATOS DE MI TABLA LUGAR, TENGO QUE REALIZAR OTRO BUCLE DENTRO DEL BUCLE ANTERIOR PARA MOSTRAR EL NOMBRE DE LAS IMAGENES DE MI TABLA TURISMO QUE SE ENLAZA CON LA TABLA ANTERIOR Y ME SALE ERROR EN LA SEGUNDA LLAMADA DEL PROCEDIMIENTO ALMACENADO .

"Warning: mysqli_stmt_execute() expects parameter 1 to be mysqli_stmt, boolean given in F:\GM PRODUCCIONES\WEB SITE\wamp\www\SERVI2016\MODULOS\columna_izquierda.php on line"

PERO AL ELIMINAR 1 PROCEDIMIENTO SI EJECUTA CORRECTAMENTE CUALQUIERA DE LOS 2.

LES MUESTRO MIS CODIGOS PHP. SIN EL CODIGO HTML


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
$sentencia = mysqli_prepare ( $conexion , "CALL GET_LUGARES" );
mysqli_stmt_execute ( $sentencia );
mysqli_stmt_bind_result ( $sentencia , $ID_LUGAR , $NOMBRE_LUGAR);
$contador_modal = 1;
while ( mysqli_stmt_fetch ( $sentencia ))
 {
 
echo $NOMBRE_LUGAR;
 
 
$sentencia2 = mysqli_prepare ( $conexion , "CALL GET_TURISMO_IMAGENES(".$ID_LUGAR.")" );
mysqli_stmt_execute ( $sentencia2 );
mysqli_stmt_bind_result ( $sentencia2, $NOMBRE_TURISMO, $IMAGEN_TURISMO);
 
while ( mysqli_stmt_fetch ( $sentencia2 ))
 {
	 $NOMBRE_TURISMO; ?>
 
 
 }
 mysqli_stmt_close ( $sentencia2 );
 
<?php
 }
 mysqli_stmt_close ( $sentencia );
 ?>


GRACIAS ESTIMADOS, ESPERO SUS APORTES!!!!
Imagen1
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder