Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

how I can use $id in img tag


Reply

3 Posts   1313 Views

Avatar
WebSpilka

13 August 2008 at 9:51pm (Last edited: 13 August 2008 9:52pm), Community Member, 79 Posts

When I write

<img src="./img/lmh/$ID.jpg" align="left" alt="" border="0">


I have result

<img src="./img/lmh/" align="left" alt="" border="0">

when I write

<img src="./img/lmh/ $ID .jpg" align="left" alt="" border="0">


I have next result

<img src="./img/lmh/%2013%20.jpg" alt="" _base_href="http://raritet.org.ua/" align="left" border="0">

I need next result

<img src="./img/lmh/13.jpg" alt="" align="left" border="0">

Avatar
Phalkunz

13 August 2008 at 10:12pm 69 Posts

It was posted somewhere by Will. Anyways, I post it up again :) It needs to be {$ID}.jpg
When you write $ID.jpg, SS looks for ID.jpg field the current page type.

Avatar
WebSpilka

14 August 2008 at 12:28am Community Member, 79 Posts

thanks you