Anti-MySQL Injection function

Started on the old forum in January 2010 · view the original in the archive · old links redirect here

20 replies · 7,165 views · started 16 years ago · 1 min read

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.

14 participants
something else Fellow · 2,296 posts #21

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

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close