Jump to content

display image from blob not working


MDanz

Recommended Posts

it should display the image but nothing appears. what have i done wrong?

 

echo "<img src=\"photo.php?id=$studentid\" alt='photo' />";

 

photo.php

<?php

$id= $_GET['id'];

$getphoto= mysql_query("SELECT photo FROM Student WHERE SID=$id LIMIT 1");

$row5 = mysql_fetch_assoc($getphoto);

$photogot = $row5['PHOTO'];
header("Content-type: image/gif");

   print $photogot;



?> 

Link to comment
https://forums.phpfreaks.com/topic/223906-display-image-from-blob-not-working/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.