Unsafe characters for programming and MySQL queries/databases -


im limiting clients entering characters.

right allow:

  • all numbers

  • all english letters

  • -

  • _

i not allow:

  • '
  • "
  • ;

what other safe characters and/or unsafe characters exist when doing query via programming using textbox or such?

the safest way work sql (mysql included) use parameterized queries. allow clients enter characters want , prevent sql injections.

you didn't mention language working here's .net example working mysql: http://dev.mysql.com/doc/connector-net/en/connector-net-tutorials-parameters.html


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -