- Joined
- Nov 24, 2008
- Messages
- 2,528
- Reaction score
- 1,435
Instead of doing this, use..
Code:function Filter($input = '') { return mysql_real_escape_string($input); }
Depending if you make new classes. It would be something like this.
$blabab(blababa is your class)->(or :Filter;
$name = $blabab->Filter($_POST['bean_avatarName']);
uberCMS has filter() built into the core. I chose not to use it though. Pure had a better method anyway!

