php Programming Glossary: parameterised
Sanitizing user's data in GET by PHP http://stackoverflow.com/questions/1314518/sanitizing-users-data-in-get-by-php htmlspecialchars ... . For SQL you're better off using parameterised queries. For Postgres there's pg_query_params . Or indeed prepared..
How do I loop through a MySQL query via PDO in PHP? http://stackoverflow.com/questions/159924/how-do-i-loop-through-a-mysql-query-via-pdo-in-php of php errors will help with your debugging and using parameterised statements instead of substituting dynamic values into the query..
Antidote for magic_quotes_gpc()? http://stackoverflow.com/questions/1997039/antidote-for-magic-quotes-gpc on content heading to the database if you're not using parameterised queries which you should definitely consider . These are two..
PHP tutorial that is security-, accuracy- and maintainability-conscious? [closed] http://stackoverflow.com/questions/2119083/php-tutorial-that-is-security-accuracy-and-maintainability-conscious Either uses SQL escaping consistently from the start or parameterised queries. If SQL escaping is used it should be correct escaping..
Escaping MySQL wild cards http://stackoverflow.com/questions/3683746/escaping-mysql-wild-cards you must perform this step even if you are using parameterised queries In this scheme _ and are special and must be escaped... there will be a different function of you can just use parameterised queries to avoid having to do it. The problem that leads to..
In PHP, how does PDO protect from SQL injections? How do prepared statements work? http://stackoverflow.com/questions/4042843/in-php-how-does-pdo-protect-from-sql-injections-how-do-prepared-statements-wor db. For starters are prepared statements the same thing as parameterised queries As an example I'm pasting below my code for the insertion..
Print hierachical data in a parent child form unordered list php? http://stackoverflow.com/questions/4318010/print-hierachical-data-in-a-parent-child-form-unordered-list-php trips to the database than any other methods including parameterised queries which require at least 2 calls for a single query 1..
Php addslashes sql injection still valid? http://stackoverflow.com/questions/5133022/php-addslashes-sql-injection-still-valid addslashes sql injection still valid I know parameterised queries is the holy grail. This is not the topic. There is an..
Why is using a mysql prepared statement more secure than using the common escape functions? http://stackoverflow.com/questions/732561/why-is-using-a-mysql-prepared-statement-more-secure-than-using-the-common-escape it comes to database queries always try and use prepared parameterised queries. The mysqli and PDO libraries support this. This is..
Efficiently sanitize user entered text http://stackoverflow.com/questions/8165500/efficiently-sanitize-user-entered-text corporate and personal. These are my recommendations 1 Use parameterised queries Parameterised queries force the values passed to the..
|