Código PHP:
<td width="60" height="100%" valign="top" bgcolor="#000080">
<p align="center">
<?
print '<img src="printimage.php?id='.$mostrar['id'].'" border="0" width="155" height="155">';
?>
</p></td>
</tr>
Código PHP:
$MainSQL="SELECT dato_img,tipo FROM noticias where id=" .$mostrar['id'];
$res = mysql_query($MainSQL);
$row=mysql_fetch_array($res);
$data = $row[0];
$tipo=$row[1];
header("Content-Type: ". $tipo ."\n");
header("Content-Transfer-Encoding: binary\n");
header("Content-length: " . strlen($data) . "\n");
print $data;
pero no me muestra nada
gracias