Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes PHP and the fly likes htmlentities to escape data in php Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » PHP
Bookmark "htmlentities to escape data in php" Watch "htmlentities to escape data in php" New topic
Author

htmlentities to escape data in php

muntago Richard
Ranch Hand

Joined: Nov 13, 2010
Posts: 82
Hello, i tried to escape outputed database plain string using htmlenties as below




I tried it this way but is not working




below is entire code



please can someone help me to fix this htmlentities issues and check also if this code is sql vulnerable since the query is passed directly to database
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: htmlentities to escape data in php
 
Similar Threads
Communication between Two web application Problem.
Redirecting a page
Value in the else condition is getting printed as the page loads
Redirct page in Tilse with JSTL
Value in the else condition is getting printed as the page loads