Stop SQL INJECTIONS
Moderator: General Moderators
-
psychotomus
- Forum Contributor
- Posts: 487
- Joined: Fri Jul 11, 2003 1:59 am
Stop SQL INJECTIONS
how do you stop sql injections? I have yet to encounter any, but I want to be sure my scripts are secure.
-
psychotomus
- Forum Contributor
- Posts: 487
- Joined: Fri Jul 11, 2003 1:59 am
Exactly which part didn't you understand well then?psychotomus wrote:I didn't really understand that article to well.
Have you really read the article?psychotomus wrote: Is there just a function I can use to clean the SQL?
I guess you haven't read the article.psychotomus wrote: would this stop sql attacks?
$SQL_COMMAND = htmlspecialchars(str_replace("\'", "'", $SQL_COMMAND));