Jump to content

Images not showing


Tjorriemorrie

Recommended Posts

Hey, as the title says, my images doesn't show in the browser.

 

I'm saving the absolute path of the images in my database (using absolute as I'm testing locally using wamp). When i put those paths in an img tag, the image doesn't show. IE doesn't show the red 'broken link' cross, but the image placeholder icon, so I'm not sure why it just doesn't show the picture.

 

Here is the code:

<?php 
echo "<p>Name: " . $left["picpath"] . "</p>\r\n";
echo "<p>Size: " . $left["picsize"] . "</p>\r\n";
echo "<p><img src=\"" . $left["picpath"] . "\" /></p>\r\n";
print_r($left); ?>

 

Here is its page source:

<p>Name: F:\pictures other\art\22903721.jpg</p>
<p>Size: 97812</p>
<p><img src="F:\pictures other\art\22903721.jpg" /></p>
Array
(
    [id] => 1518
    [picpath] => F:\pictures other\art\22903721.jpg
    [picsize] => 97812
    [picstats] => 
    [lastupdate] => 0000-00-00 00:00:00
)

 

Any help appreciated!

Link to comment
https://forums.phpfreaks.com/topic/125831-images-not-showing/
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.