Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Problem with variable's names stored in mysql

Quote Reply
Problem with variable's names stored in mysql
Hi,

I've added a new column for images, when I do add an image to an entry, it is stored on my server like this:
REAL name: picture.jpg, anotherpicture.jpg
STORED name: 1-picture.jpg, 4-anotherpicture.jpg etc.

When I do set up PageBuilder plugin, to build a page for each link and I want to call the picture like this:
Code:
<img src="<%qtmov%>">
the result is
Code:
<img src="picture.jpg">
but not "1-picture.jpg" !!!

I thought the number in front of the name equals the ID of the Link and tried <%ID%>-<%qtmov%>but the number in front isn't the ID. :(
Maybe this is due to not every Link has a picture...


How do I correctly call the name of the image belonging to the link?

Thanks,
Sven
Quote Reply
Re: [sun112] Problem with variable's names stored in mysql In reply to
See http://www.gossamer-threads.com/...orum.cgi?post=292819 for instructions on how to use file columns.

Adrian