Retrieve HTML from db
| From: | Russ Michell | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Retrieve HTML from db | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-14467@lists.php.net to get a copy of this message | ||
* You could cheat and wrap anchor tags around the DB content you want to display as a hyperlink
* If you know which variable from the DB you wish to be displayed as a link then:
$variable = "<a href=\"yourpage.php\">$variable</a>";
HTH :-)
Russ
On Tue, 20 Nov 2001 11:54:25 -0400 Joe Van Meer <joe@coastaldestination.com> wrote:
> Hi there...I have a db filled with various HTML code examples, tags, etc...
> how would I format it so that it would appear like <A href='index.php'>Link
> One</a>. I was using the strip_tags() function and quickly found out that
> this wasn't the best way to do it :)
>
> Cheers, Joe:)
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
#-------------------------------------------------------#
"Believe nothing - consider everything"
Russ Michell
Anglia Polytechnic University Webteam
Room 1C 'The Eastings' East Road, Cambridge
e: r.j.michell@apu.ac.uk
w: www.apu.ac.uk/webteam
www.theruss.com
#-------------------------------------------------------#