|
-
Mar 11th, 2010, 04:32 AM
#13
Re: DB Search Command
 Originally Posted by jmcilhinney
Never use string concatenation to build SQL statements if it can possibly be avoided.
OK. What can possibly go wrong with the code I provided?
Well, I admit that a user can use characters ' or " in the textbox and exploit some SQL injection but this should be done by filtering user input. What's wrong with the concatenation itself?
Last edited by cicatrix; Mar 11th, 2010 at 04:35 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|