Stop SQL INJECTIONS
Posted: Wed Feb 07, 2007 8:58 pm
how do you stop sql injections? I have yet to encounter any, but I want to be sure my scripts are secure.
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
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));