Jump to content

display images from mysql help


defecto

Recommended Posts

Hello everyone,

 

I need help figuring out why im not getting images displayed. I have tried everything I could think of and narrowed down the issue.

 

What Im doing id querying urls from DB for my images. Then using md5 to encrypting the url them before display on web page.

 

Here is the code:

 

$img = @ md5(mysql_result(mysql_query("SELECT `url` FROM `pictures` WHERE `mls`='{$row['mls']}'  ORDER BY `id` LIMIT 1",$avenu->link),0));

 

When html is displayed I get the hash.jpg. The image failed to be loaded.

Link to comment
https://forums.phpfreaks.com/topic/255853-display-images-from-mysql-help/
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.