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
5
u/rush2sk8 Dec 01 '18
this is probably one of the funniest comments i've ever read