SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Dec 2013
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Display image from databse in php

    I have a path on my db of image but when i put the code its not working , i tried so many procedures to get the image but still not done.
    Do any one can help me right now its very urgent . THANKS

  2. #2
    From Italy with love silver trophybronze trophy
    guido2004's Avatar
    Join Date
    Sep 2004
    Posts
    9,496
    Mentioned
    163 Post(s)
    Tagged
    4 Thread(s)
    Check the html code in your browser. Is the image link there? If it isn't, apparently there's something wrong in your PHP code.
    If it is, copy the link and paste it in the address bar of your browser. Does it show the image? If it doesn't, then the image isn't there, or the path is not correct.

  3. #3
    SitePoint Mentor silver trophy
    Rubble's Avatar
    Join Date
    Dec 2005
    Location
    Cambridge, England
    Posts
    2,397
    Mentioned
    81 Post(s)
    Tagged
    3 Thread(s)
    It would help if you posted some code as there are different ways to do it depending how you get the data.

    All you need to do is put the path to the image into the image tags; but again are the images in the same folder as the code?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •