Dynadot Aftermarket: discover domain gems worth investing in. Visit our aftermarket.

My minds blank...

SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
Watch

adam_uk

Established Member
Impact
20
hey people i cant rembmer what it is but theres a function in php i belive called something (str_ something i think)

that stops the browser parsing html and php stuff when selelcting data from a database

basically ive got this entry in my database that contains html and i cant remmber the function i use to stop it processing it when its selected from the database

any ideas cheers :)
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Are you thinking of htmlspecialchars or htmlenteties? Is what you're wanting to do is display the source code of the html rather than having the browser parse it when you print it? If so, you can also use <xmp> or <pre> tags around what your print.
<xmp>
<?=$result['your_result'];?>
</xmp>
 
0
Close
thats the one! htmlspecialchars

cheers :)
 
0
Close
CatchedCatched

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Filters for activity feeds
Your news feed, Latest activity, and the activity tab on profiles now have filter buttons: All, Posts, Quick replies, and Other. Your...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back