faqts : Computers : Programming : Languages : PHP : General Information : PHP Based Projects

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

3 of 6 people (50%) answered Yes
Recently 0 of 3 people (0%) answered Yes

Entry

How to -Convert particular text retrieved via PHP from Database(Oracle) into hypertext ?

May 28th, 2000 15:17
Simon Roberts, jim o'Reilly,


I'm not sure exactly what you mean, but you're probably asking how you 
can display the text-strings that came from Oracle into HTML? There are 
some characters that will "confuse" HTML, so you need to convert things 
like less-than '<' to &lt; and ampersand '&' to &amp;.

There is a PHP function that does this for you : htmlspecialchars() see 
http://www.php.net/manual/function.htmlspecialchars.php