|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Making dynamic text into links
i'm trying to make some text returned into a link. the last cell in the table will contain a URL. i want to make the text a link, using the variable URL as the desination address. any thoughts?
thanks. PHP Code:
|
|
#2
|
|||
|
|||
|
Take a look at this snippet of code:
PHP Code:
That should give you the answer to your question.
__________________
__________________________________________________ _ Wil Moore III, MCP | Integrations Specialist | Senior Consultant Are You Listed...? | DigitallySmooth Inc. |
|
#3
|
|||
|
|||
|
let me rephrase this:
i am pulling content from a database. one of the fields being returned is a url. i want to make that url a link to the url that it represents. does that change the example above? |
|
#4
|
|||
|
|||
|
well then
PHP Code:
__________________
-- Jason |
|
#5
|
|||
|
|||
|
No, he's trying to do something along the lines of pull both a name for the link and the link itself from the database, then display them.
The code is almost right. You'd create an array with the values in it and then have code liek: PHP Code:
Or something like that. |
|
#6
|
|||
|
|||
|
You may be correct, however that is 100% assumption. I've read over his post and can't find any evidence that he wants the link text to actaully be pulled from the database:
Here is his text: Quote:
He states, "I'm trying to make some text returned into a link" He specified "SOME" text... not "Text from the database". He also stated "the last cell in the table will contain a URL", which leads me to believe that if he really wanted the text to come from the database he would have also stated this... Why would he be explicit about the URL part, but say nothing of the url TEXT? However, you still are most likely correct... I just wanted to point out that he really made it tough to help him since he didn't outline his needs very well. Such a simple request could have been tackled in one post; instead we've posted at least 7 times. |
|
#7
|
|||
|
|||
|
agreed
![]() |
|
#8
|
|||
|
|||
|
sorry guys. should've been clearer.
i figured it out with your help. it was actually a combination of taelo's and kanu's examples. thanks again. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Making dynamic text into links |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|