Re: Table formatting a link from a mysql query result

From: Date: Thu, 05 Sep 2002 20:38:54 +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-21590@lists.php.net to get a copy of this message
$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


« previous php.db (#21590) next »