Jump to content

Anyone having issues displaying images with WAMPSERVER?


pneudralics

Recommended Posts

I have a while loop that grabs image names from the database then displays it in:

<img src=\"$websiteurl/icons/$category/$image\" alt=\"\" />

 

I have different categories for the different images and all of the categories have the same php code but with different table names. I have 3 pages in total. The first 2 pages displays the image fine, but for some reason the 3rd page does not display any of the images. All are duplicates except for the table name in mysql.

 

With wampserver on I can go and type in http://localhost/images/1.jpg it'll show the image for the 1st and 2nd php page, but not for the 3rd php page even though it's a duplicate page of the 1st and 2nd.

 

I can physically see that the image is in the directory, but it won't display for some reason.

Link to comment
Share on other sites

Yes the html outputs the image source. I've spent several hours looking at this and can't really figure out what is the issue. All of the php pages are duplicates except for the table name and for some reason this one doesn't display.

 

When I create the directory I set it to 777 with mkdir(). All the other images for are uploaded the same exact way.

 

When I type this in the url section it'll show but if I did that to my php code to display it like that it will not show: C:\wamp\www\image\category\e949357865835300e4933beb58b5dbc0.gif

The source code shows exactly as I want it to look like above.

 

But if I do this with wampserver on: http://localhost/image/category/e949357865835300e4933beb58b5dbc0.gif

it doesnt show in either

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.