php-db | 2002091
Date: 09/05/02
- Next message: rainydays_sunshine <email protected>: "[PHP-DB] database result: tables with 2 coloumns"
- Previous message: Aaron Merrick: "[PHP-DB] Table formatting a link from a mysql query result"
- In reply to: Aaron Merrick: "[PHP-DB] Table formatting a link from a mysql query result"
- Next in thread: Aaron Merrick: "Re: [PHP-DB] Table formatting a link from a mysql query result"
- Reply: Aaron Merrick: "Re: [PHP-DB] Table formatting a link from a mysql query result"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
$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
- Next message: rainydays_sunshine <email protected>: "[PHP-DB] database result: tables with 2 coloumns"
- Previous message: Aaron Merrick: "[PHP-DB] Table formatting a link from a mysql query result"
- In reply to: Aaron Merrick: "[PHP-DB] Table formatting a link from a mysql query result"
- Next in thread: Aaron Merrick: "Re: [PHP-DB] Table formatting a link from a mysql query result"
- Reply: Aaron Merrick: "Re: [PHP-DB] Table formatting a link from a mysql query result"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

