Re: Table formatting a link from a mysql query result
| From: | Aaron Merrick | Date: | Thu, 05 Sep 2002 23:48:49 +0000 |
| Subject: | Re: Table formatting a link from a mysql query result | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-21593@lists.php.net to get a copy of this message | ||
Brad,
Thanks a million! That does the trick.
Aaron
On 9/5/02 3:38 PM, "Brad Bonkoski" <bbonkosk@tampabay.rr.com> wrote:
> $variable_to_be_passed = 'some value';
> echo "<td><a href='some_page.php?variable=$variable_to_be_passed'>I
> am a
> link</a></td>";
>
> I think this should do it, not quite sure what you mean by wrappinga
> table cell in a anchor tag? Of course if you need to use the results of
> a database, this can be done too with the same method.
>
> HTH
> -Brad
>
> Aaron Merrick wrote:
>> All,
>>
>> How can I display the results of a table so that the first field (column) is
>> a link to another page that shows the details of that row? Issue #1, I have
>> to wrap the cell contents in an <a href. Issue #2, I need to pass a
>> variable to the referenced page when the link is clicked. Anyone know of
>> any good examples of this?
>>
>> Thanks,
>> Aaron
>>
>>
>
>