Results 1 to 36 of 36

Thread: DB Search Command

Threaded View

  1. #13
    PowerPoster cicatrix's Avatar
    Join Date
    Dec 2009
    Location
    Moscow, Russia
    Posts
    3,654

    Re: DB Search Command

    Quote Originally Posted by jmcilhinney View Post
    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?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width