By: Indrid Cold
Date: 2006-11-26
Time: 18:42
|
Dynamic Links
Hi,
If I have an query result stored as an associative array like this:
<code>
['entry 1'] = 1
['entry 2'] = 8
.. etc ..
</code>
How then do I have dynamic links which should display something like this for each element in the array:
<code>
<a href="test.php?id=1>entry 1</a>
<a href="test.php?id=8>entry 2</a>
</code>
I've had a look in the manual and seen similar syntax to what I require being used on table rows but I don't know how to separate the values like you would in a hyperlink.
James
|
By: TomH
Date: 2006-11-26
Time: 19:12
|
Re: Dynamic Links
Something like this...
<a href="test.php?id=[blk.val,block=a]>[blk.key]</a>
|
HTH
|
By: Indrid Cold
Date: 2006-11-26
Time: 19:15
|
Re: Dynamic Links
Thank you for your reply HTH! unfortunately when I try this all I get is a line saying [blk.key] - any ideas on that one ?
|
By: Indrid Cold
Date: 2006-11-26
Time: 19:51
|
Re: Dynamic Links
Nevermind, had a tinker with it and after a struggle i got it working. Thanks!
|
|
Posting in progress.
Please wait...
|