Jump to content

[b]why images from my database not apparing on my page[/b]


claire

Recommended Posts

image.php

$result = mysql_query('SELECT image,type FROM images WHERE id=' . $id) or die (mysql_error());
list($image,$mimetype) = mysql_fetch_row($result);
header("Content-type: $mimetype");
fpassthru($image);
exit;

 

page.php

<html>
<body>
<img src="image.php?id=1">
</body>
</html>

 

???

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.