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   1334 Views

Avatar
WebSpilka

Community Member, 83 Posts

13 August 2008 at 9:51pm

Edited: 13/08/2008 9:52pm

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

69 Posts

13 August 2008 at 10:12pm

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

Community Member, 83 Posts

14 August 2008 at 12:28am

thanks you