Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

why not using filter_input or casting it ? e.g $userId = (int)$_GET["userId"]; and also when query to db using parameter binding ?


Yeah, a prepared statement would take care of this just fine




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: