Cita:
Iniciado por pateketrueke
Bueno, pues resulta que las variables no se imprimen solas.
Para imprimir tu variable debes usar echo:
Código PHP:
<?php echo $mostrar; ?>

Gracias pero bueno, resulta que utilicé
<html><body>
<br>
<img src="<?php echo $mostrar;?>" height="1000" width="1000"> </img>
</body></html>
y ahora en el código fuente del navegador tengo:
<html><body>
<br>
<img src="C:/wamp/www/DEI/imagenes/DEI_IMG_0227.PNG" height="1000" width="1000"> </img>
</body></html>
pero no me muestra la foto, solo me aparece el marco, en que estoy fallando, será en la consulta?
$consul ="SELECT nombre FROM tablita WHERE id='15'";
$res=mysql_query($consul,$conn);
$filas=mysql_fetch_array($res);
$mostrar=$filas['nombre'];
?>
<html><body>
<br>
<img src="C:/wamp/www/DEI/imagenes/DEI_IMG_0227.PNG" height="1000" width="1000"> </img>
</body></html>