RE: [PHP-DB] Printing anchor link in results
| From: | Hutchins, Richard | Date: | Fri, 21 Mar 2003 13:17:17 +0000 |
| Subject: | RE: [PHP-DB] Printing anchor link in results | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-26543@lists.php.net to get a copy of this message | ||
It's basic HTML:
> echo "\n<tr>\n\t<td bgcolor=\"silver\">" .
"<b>Web: </b><a href=\"www.mycompany.com\">".
//changed this
line
> $arr['web_pro'].
"</a></td> //changed this line
> <td bgcolor=\"silver\">" .
> "</td>
> \n</tr>";
Hope that's what you were looking for.
Rich
> -----Original Message-----
> From: Achieve IT [mailto:info@achieve-it.com]
> Sent: Friday, March 21, 2003 8:11 AM
> To: php-db@lists.php.net
> Subject: [PHP-DB] Printing anchor link in results
>
>
> Hello,
> I am new to PHP and am wondering how to print a variable an
> external link.
> In the example below, the 'web_pro' variable has the format,
> www.mycompany.com . How can I make this a clickable link?
>
> echo "\n<tr>\n\t<td bgcolor=\"silver\">" .
> "<b>Web: </b>" .
> $arr['web_pro'] .
> "</td>
> <td bgcolor=\"silver\">" .
> "</td>
> \n</tr>";
>
> Thanks,
> Declan.
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>