Just use stored Procedures
|
Author | Content |
---|---|
tracyanne Aug 25, 2008 8:03 PM EDT |
and pass parameters, that gets rid of most the means of SQL injection from the start. There isn't a lot else you need to do after that. |
gus3 Aug 26, 2008 12:49 AM EDT |
Good advice. What's the earliest version of MySQL that supports stored procedures? (Since I'm not a professional DB dev, I've never had reason to use them in my own development, so I don't know.) |
herzeleid Aug 26, 2008 1:13 AM EDT |
5.0 IIRC |
jezuch Aug 26, 2008 2:07 AM EDT |
If you don't have stored procedures, try prepared statements. And if you don't have prepared statements... Well, here's a nickel, get yourself a real programming language ;) |
Sander_Marechal Aug 26, 2008 3:22 AM EDT |
Just get a proper Database Abstraction layer. If you're writing SQL statement by hand YOU HAVE A BUG! |
Posting in this forum is limited to members of the group: [ForumMods, SITEADMINS, MEMBERS.]
Becoming a member of LXer is easy and free. Join Us!