Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Jun 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    outputing images from a php script,how?

    I have the following problem, i have a sript that outputs pics with the <img scr=""> tag, but when i put it in the index by the help of include or require the pictures dont want to open(they dont show),(when i run the script directly there is no problem). I have no idea why. PLS help me. If you need anymore info on the script PLS write.

  • #2
    raf
    raf is offline
    Master Coder
    Join Date
    Jul 2002
    Posts
    6,589
    Thanks
    0
    Thanked 0 Times in 0 Posts
    maybe show us the code you use so we don't need to waste our psychic powers on this ...

    maybe you're just using relative paths?
    Posting guidelines I use to see if I will spend time to answer your question : http://www.catb.org/~esr/faqs/smart-questions.html

  • #3
    New to the CF scene
    Join Date
    Jun 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by raf
    maybe show us the code you use so we don't need to waste our psychic powers on this ...

    maybe you're just using relative paths?
    here is the part that outputs the image
    Code:
    while ($row = $connector->fetchArray($result)){
     
      echo '<img src="../images/LanPortal/Graphics/arrow.gif">';
        echo $row['title'];
        echo '</a><br>';
    
    }

  • #4
    raf
    raf is offline
    Master Coder
    Join Date
    Jul 2002
    Posts
    6,589
    Thanks
    0
    Thanked 0 Times in 0 Posts
    so where is the opening tag of the link? and is this code inside the included page? are both the main script and the included script stored i the same directory?
    Posting guidelines I use to see if I will spend time to answer your question : http://www.catb.org/~esr/faqs/smart-questions.html

  • #5
    New to the CF scene
    Join Date
    Jun 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by raf
    so where is the opening tag of the link? and is this code inside the included page? are both the main script and the included script stored i the same directory?
    this code code is incside the sript that i include in the index later.


  •  

    Posting Permissions

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