Ver Mensaje Individual
  #6 (permalink)  
Antiguo 23/03/2009, 02:00
3du4rd0
 
Fecha de Ingreso: marzo-2009
Mensajes: 30
Antigüedad: 15 años, 1 mes
Puntos: 1
Respuesta: Imagenes en MYSQL

Se debe a que necesitas otro archivo o script aparte para mostrar la imagen-
Código PHP:
<?

$result 
mysql_query("SELECT * FROM datos WHERE Jugador= '".$_GET['Jugador']."'");
$row mysql_fetch_array($result);
$content $row['Foto'];
echo 
"<tr>";
echo 
"<img src='imagen.php?Jugador=$row[Jugador]'>";
echo 
"<font face=Arial color=#003366 size=2>".$row['Jugador'] . "<br>";
echo 
"<font face=Arial color=#003366 size=2>".$row['Goles'] . "<br>";
echo 
"<font face=Arial color=#003366 size=2>".$row['Cualidades'] . "<br>";
?>
Y el que saque la imagen imagen.php:
Código PHP:
<?
$result 
mysql_query("SELECT * FROM datos WHERE Jugador= '".$_GET['Jugador']."'");
$row mysql_fetch_array($result);
$content $row['Foto'];
header('Content-type: image/jpg');
echo 
$content;
?>