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

The strength of using a parameterised query (i.e. $dbh->prepare) is that you are letting your database's type system do the work for you. You tell it where your variable should land in your query, and before it even looks at the variable the database works out what type to expect. Either the data you give it fits into the hole you tried to put it in, or the query fails gracefully and your existing data is safe.


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

Search: