aj123cd Posted October 25, 2011 Share Posted October 25, 2011 HI all, Please advice me 1. When to use htmlspecialchars() or mysql_real_escape_string? 2. what is the diffrent? Thank you for your help. Quote Link to comment https://forums.phpfreaks.com/topic/249762-htmlspecialchars-vs-mysql_real_escape_string-confused/ Share on other sites More sharing options...
Psycho Posted October 25, 2011 Share Posted October 25, 2011 Have you read the manual for those two functions? The information you need is right there http://php.net/manual/en/function.htmlspecialchars.php http://us.php.net/manual/en/function.mysql-real-escape-string.php The manual will do a better job of giving you the basics of those two functions (including their purpose) than we can do in a forum post. if you have a specific question regarding them after reading the documentation, then just post back with your specific question Quote Link to comment https://forums.phpfreaks.com/topic/249762-htmlspecialchars-vs-mysql_real_escape_string-confused/#findComment-1281999 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.