Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • + "'" + req.query.Name + "'" - this is sql-injection vulnerability! see: xkcd.com/327 Commented Apr 26, 2019 at 19:12
  • ` where match descr against ?` doesn't seem right. Do you mean WHERE descr MATCH ?? Commented Apr 26, 2019 at 19:47
  • 1
    @tadman here is the link to mysql syntax, thanks! - dev.mysql.com/doc/refman/5.5/en/fulltext-boolean.html Commented Apr 26, 2019 at 20:03
  • @alfasin - you meant even with "?" placeholder, this is sql-injection vulnerability, as shown in the second query? Commented Apr 26, 2019 at 20:06
  • 1
    @SnowKari Ah, I see what you're trying to do now. This would be a lot easier to read with the redundancy removed and with placeholders used instead of concatenation. Commented Apr 26, 2019 at 20:07