Tema: While en PHP
Ver Mensaje Individual
  #2 (permalink)  
Antiguo 22/08/2010, 00:50
Avatar de xalupeao
xalupeao
 
Fecha de Ingreso: mayo-2008
Ubicación: Santiago, Chile
Mensajes: 749
Antigüedad: 16 años
Puntos: 12
Respuesta: While en PHP

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. ?>
__________________
Hosting en Chile en Silverhost - La solución en Hosting en Chile.