How to sanitize your php input

Never trust user input, it may be malicious, always check your php input. Check all global arrays like $_GET, $_POST, $_REQUEST, $_COOKIE, allow only known variables and make sure that they contain the right type of data. What does this mean ? It means that if you have a $_GET[‘id’] variable in your script which …

Introduction to PHP PDO

Introduction to PHP PDO (PHP Data Objects) by Kevin Waterson Contents What is PDO What Databases does PDO support Where do I begin? Connect to a Database Connect to PgSQL Connect to SQLite Connect to MySQL Connect to Firebird Connect to Informix Connect to Oracle Connect to ODBC Connect to DBLIB Connect to IBM There …