has scared me to death! So a user could type SQL commands into a search-text box and they'd get appended to the resulting SQL query, potentially deleting your whole database!
would it be enough for me to just go through the string checking there are no semicolons?
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
Limiting the length of input is also another way. For example, if you have a text field of 15 characters long in your database, truncate any input to 15 characters -before- it hits the database.
__________________ Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"
I had a similar query the other week but nobody answered my post. What zenanthor wrote about permissions reminded me about it. Can someone please read this post and tell me what they think.