Who has replaced a dot with a semicolon while composing a SQL query in php? Me. 😤😤😤😤😤
Two hours spent in fixing everything and a sleepless night.

  • 4
    That query will crash if there are semicolons in the filename. Or quotes. Better start using PDO
  • 1
    I'm not a php dev, but shouldn't queries go inside service instead of inside php web page? even though it is not returned with the result page
  • 2
    Thanks for telling us, I'll never hire you
  • 1
    @ardnahcimor that was harsh :P
  • 0
    You could have figured it out in a matter of minutes, next time just copy paste sql in phpmyadmin or workbench
  • 3
    And this is how you suffer from sql-injection attacks
  • 2
    Never use concatenation to build SQL queries.
    Not even at gunpoint.
  • 0
    Are you sure that's a good way to execute the SQL query?? I feel can be SQL injection attack
Add Comment