yeah put them in core 🙂 well you can put them on other places but better off in core so they are available on every page
Anti-MySQL Injection function
Started on the old forum in January 2010 · view the original in the archive · old links redirect here
TL;DR · summary of 20 replies
- The thread discusses various methods to prevent SQL injection, including functions provided and suggestions for implementation.
- Users proposed different approaches such as using mysql_real_string_escape(), custom functions like anti_sql_injection(), or modifying .htaccess files.
- Suggestions included using preg_replace instead of deprecated eregi_replace.
- The thread concluded with a recommendation to place the anti-injection code in the core PHP for easy availability across all pages.
Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.