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
Post a Comment