Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
alien3d
· 10y ago · 0 comments
why not using filter_input or casting it ? e.g $userId = (int)$_GET["userId"]; and also when query to db using parameter binding ?
Comments
[–]
Grazester
10y ago
Yeah, a prepared statement would take care of this just fine