Ver Mensaje Individual
  #1 (permalink)  
Antiguo 27/12/2015, 09:20
ycaires
 
Fecha de Ingreso: septiembre-2015
Ubicación: caracas
Mensajes: 75
Antigüedad: 8 años, 7 meses
Puntos: 0
Mostar imagen en php de una base de datos

Buen dia el problema que tengo es que no puedo mostar la imagen he tratado de muchas formas pero no logro dar si alguien me puede ayudar gracias aqui esta el php que extrae la diferentes datas

<?php


$server = "localhost";
$usuario = "root";
$contraseña = "";
$bd = "agenda";

$conexion = mysqli_connect($server,$usuario,$contraseña,$bd)
or die ("error en conexión favor verificar la conexión");

$nombres= $_POST['nombres'];



$consulta = mysqli_num_rows(mysqli_query($conexion,"SELECT nombres from agendap where nombres='$nombres'"));

if($consulta==0){
echo 'No hay nombre registrado';
echo '<br>';
echo '<br>';
echo '<center><a href="http://localhost/proyecto/consultaralumno.html"><img src="cedula.png"></a></center>';
echo '<br>';
echo '<br>';
echo '<center><a href="http://localhost/proyecto/consultaralumno.html"><img src="actualizacion.png"></a></center>';
return;

}

$consulta = (mysqli_query($conexion,"SELECT nombres,apellidos,correo,telf1,telf2,imagen from agendap where nombres='$nombres'"));

echo '<br>';
echo '<center>CONSULTA O REPORTE DE TELEFONO</CENTER>';
echo '<br>';
echo '<center>';
echo '<table class="footable">';
echo '<tr>';
echo '<td bgcolor="#AFEEEE"><center><strong>Nombres</strong></center></td>';
echo '<td bgcolor="#AFEEEE"><center><strong>Apellidos</strong></center></td>';
echo '<td bgcolor="#AFEEEE"><center><strong>Correo</strong></center></td>';
echo '<td bgcolor="#AFEEEE"><center><strong>Teléfono 1</strong></center></td>';
echo '<td bgcolor="#AFEEEE"><center><strong>Teléfono 2</strong></center></td>';
echo '<td bgcolor="#AFEEEE"><center><strong>Imagen</strong></center></td>';

echo '</tr>';



while ($extraer = mysqli_fetch_array($consulta))
{
echo '<tr>';
echo '<td>'.$extraer['nombres'].'</td>';
echo '<td>'.$extraer['apellidos'].'</td>';
echo '<td>'.$extraer['correo'].'</td>';
echo '<td>'.$extraer['telf1'].'</td>';
echo '<td>'.$extraer['telf2'].'</td>';
echo '<td>'.$extraer['imagen'].'</td>';


}
mysqli_close($conexion);
echo '</table>';

echo '</center>';

?>
__________________
ymanol caires z