r/shittyprogramming • u/knflrpn • Nov 30 '18
Unbeatable protection from SQL injection.
Just don't name your table "users" so when they do the "DROP TABLE users;" it doesn't work.
143
Upvotes
r/shittyprogramming • u/knflrpn • Nov 30 '18
Just don't name your table "users" so when they do the "DROP TABLE users;" it doesn't work.
View all comments
Show parent comment
1
u/messy_eater Feb 17 '19
Information schema?