Re: trying to output a hyperlink

From: Date: Sun, 11 Apr 2004 03:15:04 +0000
Subject: Re: trying to output a hyperlink
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-183111@lists.php.net to get a copy of this message
Damian Brown wrote:
<td><?php $link = '<a href="' ;
              $link = $link . $row[2] . '">' ;
              $link = $link . '</a>' ;
              echo $link ; ?></td>
is not working, I want to output $row[2] as a hyperlink as it is the refering URL, but the above is just showing blank in the output, with no link and no text in the output table
You kind of need something between the <a href> and the </a> for you to see a link. $link = "<a href=\"{$row[2]}\">Click Here</a>"; -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com

« previous php.general (#183111) next »