php-db | 2002091

Re: [PHP-DB] Table formatting a link from a mysql query result From: Aaron Merrick (amerrick <email protected>)
Date: 09/05/02

Brad,

Thanks a million! That does the trick.

Aaron

On 9/5/02 3:38 PM, "Brad Bonkoski" <bbonkosk <email protected>> 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
>>
>>
>
>

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php