Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

variable link stored in db 1

Status
Not open for further replies.

thompom

Technical User
Dec 4, 2006
395
GB
hi - am sure i've done this before, but cant figure it out

have a link on a page that is from a db

page code
Code:
<a href= <%=(x_modadurl)%> >

in the db (x_modadurl) i store

Code:
[URL unfurl="true"]http://www.tek-tips.com[/URL]

this works fine, but if i want to include a variable in my url i cant get it put the variable in the link

i think it should look like
Code:
"[URL unfurl="true"]http://tek-tips.com?"[/URL] & x_modid

but this doesnt work - the url ends up as


am i making sense - hope so, if not let me know!
am using mysql and x_modadurl is in fieldtype text
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top