Page 1 of 1

Easy question

Posted: Sat Nov 27, 2004 2:23 pm
by weeshdude
I'm trying to display a picture with this code and it ain't working. I'm not seeing the problem. any help would appeactied. or is there a better way?

Code: Select all

echo "<img src="$file">";
Thanks Aaron

Posted: Sat Nov 27, 2004 2:31 pm
by scorphus
If $file holds the full path to the file (i.e. logo.jpg or ../images/logo.jpg) it should work. What is the content of $file? Give us what the following outputs:

Code: Select all

<pre><?php
print_r($file);
?></pre>
-- Scorphus

Problem Solved thanks for the help!

Posted: Sat Nov 27, 2004 2:39 pm
by weeshdude
Thanks alot it works

aaron