Latest Posts

PHP Code Snippets
John Morris

Connecting to MySQL with PDO

With MySQLi, it looks like this: $mysqli = new mysqli($db_host, $db_user, $db_pass, $db_name); But, PDO is a bit different because it can interact 12 different

Read More »
PHP Code Snippets
John Morris

Simple input filtering in PHP

Here’s one I don’t see talked about much: $name = filter_input(INPUT_POST, ‘name’, FILTER_SANITIZE_STRING); What this does is grab the “name” element from your POST array

Read More »
career advice
John Morris

Like taking code from a baby

Remember that post a few days back… Where I said this: “Especially considering I basically had to harass them to get paid each month for the

Read More »
Close Menu