PHP PDO Mysql 101

PHP PDO Mysql 101

PHP PDO MySQL Needed to make a simple php script with mysql in it, so I decided to use PDO because… well peer pressure 😐 so heres a basic PHP PDO MYsql script. The idea is I have a table called table with a field called field in a database called somedatabase....
php Filter var & common regex patterns

php Filter var & common regex patterns

People … quit messing about with ereg_replace / preg_replace / eregi or other things you know nothing of… use the php filter_var. DO IT. Commonly found bullshit on the interwebs : PHP function isValidEmail($email){ return...