This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
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
 
Don't get me started about those stupid light bulbs.
 
subject: htmlentities to escape data in php