...

View Full Version : outputing images from a php script,how?



izarfel
09-14-2005, 05:51 PM
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.

raf
09-14-2005, 11:02 PM
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?

izarfel
09-14-2005, 11:15 PM
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


while ($row = $connector->fetchArray($result)){

echo '<img src="../images/LanPortal/Graphics/arrow.gif">';
echo $row['title'];
echo '</a><br>';

}

raf
09-14-2005, 11:57 PM
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?

izarfel
09-15-2005, 07:51 AM
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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum