ki Posted March 28, 2012 Share Posted March 28, 2012 Like 6 years ago I had made a forum software for me and my buddies to post on. It had worked all great until my friend had posted a character that skewed my whole database, unintentionly, he knew nothing about computers. But I really haven't dabbed in PHP since 2008, I'm just now getting back into it again. I need to know how I can make data from an input to be put into an MySQL database and not screw up my code. So something along the lines that make the code safe and not exploitable. Also any third party scripts on captcha would be great! Quote Link to comment https://forums.phpfreaks.com/topic/259882-keeping-input-through-php-safe/ Share on other sites More sharing options...
scootstah Posted March 28, 2012 Share Posted March 28, 2012 mysql_real_escape_string or better yet, prepared statements offered by MySQLi or PDO. Quote Link to comment https://forums.phpfreaks.com/topic/259882-keeping-input-through-php-safe/#findComment-1331979 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.