|
|
|
|
|
by whatnow37373
464 days ago
|
|
How is this not "sanitizing inputs"? The basic idea behind your proposal exists and is called prepared statements. It's actually, I hope, the normal way to write queries these days. You write your query like: "SELECT * FROM users WHERE username = ?" and execute your query like "execute(query, username)". The problem? It's optional. |
|
"Prepared statements" sounds EXACTLY like what I was thinking! I don't understand why people would ever use anything else.