Tema: While en PHP
Ver Mensaje Individual
  #3 (permalink)  
Antiguo 22/08/2010, 01:13
Avatar de MarioAlejandroCR2
MarioAlejandroCR2
 
Fecha de Ingreso: mayo-2010
Ubicación: Esparza - Puntarenas
Mensajes: 98
Antigüedad: 14 años
Puntos: 2
Respuesta: While en PHP

Cita:
Iniciado por xalupeao Ver Mensaje
Código PHP:
Ver original
  1. <?php
  2.  mysql_select_db($Basedatos, $MiConexion);
  3.     $Sqls = sprintf("select imagen_fnl,Tipo from bdimagenes");
  4.     $regs = mysql_query($Sqls, $MiConexion) or die(mysql_error());
  5.     while($row_regs = mysql_fetch_assoc($regs)){
  6.     header("Content-Type:".$row_regs["Tipo"]);
  7.     echo $row_regs['imagen_fnl'];
  8.     }
  9. ?>
Gracias pero sigue sin funcionarme aún