Also, you can save yourself some time using PHP's shorthand concatenation operator.
> <td><?php $link = '<a href="' ; > $link = $link . $row[2] . '">' ; > $link = $link . '</a>' ; > echo $link ; ?></td>
Turns into:
<td><?php $link = '<a href="'; $link .= $row[2] . '">'; $link .= 'Click here</a>'; echo $link; ?></td>
Although, it could be shortened even more, to:
<td><?php $link = "<a href=\"".$row[2]."\">Click here</a>"; echo $link;?></td>
But I imagine you're doing it with more lines for legibilities' sake.
Andy
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 -- www.phpexpert.org/truefaith.htm "True Faith is not just when you believe in God and yourself, it is when others begin to believe in you as well" - Damian John Paul Brown 2004
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php