[thelist] php display "" '' / gif?

Taz taz at tazonline.org
Sun Mar 9 12:42:02 CST 2003


On Sun, 2003-03-09 at 18:15, Andrew wrote:
> I have a line of code that displays an image for example:
>
> echo "<img src=\"$Relative/images/Clover".$County . '.gif'>";
>
> however the image wdoesn't show?
>
> If I have:
>
> /* Image here */
> echo "<img src=\"$Relative/images/Clover/".$County."\">";
> /* Image will END here */
>
> The image shows but *** the image will only show if it has *no* file extention
> :(
>
> I want a file extention .gif any ideas where the code is tricking me :)

What happens when you use the following, does it have the desired effect?

echo "<img src=\"".$relative."/images/clover/".$county.".gif\">";

Taz




More information about the thelist mailing list