Re: Retrieve HTML from db

From: Date: Tue, 20 Nov 2001 16:20:34 +0000
Subject: Re: Retrieve HTML from db
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-14470@lists.php.net to get a copy of this message
Thx guys for your suggestions. My question probably wasn't worded as good as it could be. Here's the situation, I have a small php app that I'm building to display, insert, edit, etc... various types of code snipits (asp, php, html, etc...) in a db. I also have a download option that creates a text file with the code that they've selected. I have 2 problems...the first is that when I go to view the text file I have all sorts of <BR> tags within the text, this is due to the nl2br function I used prior to the db insertion. How would I get rid of those? The seond problem is when a user goes to view an html code example, say with a hyperlink, the hyperlink is made active replacing the code with the actual <a href> tag. Sorry for not being clear with my first post. Cheers, Joe "Joe Van Meer" <joe@coastaldestination.com> wrote in message news:20011120155255.81828.qmail@pb1.pair.com... > 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:) > >

« previous php.db (#14470) next »