Blog

Archive for the PHP Category


Brief PHP Scope Resolution Operator Explanation
Posted on June 23, 2015 in OOP, PHP by Matt Jennings

In the example below the scope resolution operator (::) ensures the attack() method of the Wizard subclass includes the code …

Read more


A Brief Explanation of Class Inheritance in PHP
Posted on June 23, 2015 in OOP, PHP by Matt Jennings

In PHP, an inherited class (also called an extended class or subclass) usually gets all of the parent class’s methods …

Read more


Using the mysqli_real_escape_string() and md5() Functions to Escape and Encrypt a Submitted Password
Posted on June 19, 2015 in MySQL, PHP by Matt Jennings

Example code:

$esc_sec_password = mysqli_real_escape_string($connection, md5($_POST[‘password’]));


Using the mysqli_real_escape_string() PHP Function to Fight MySQL Injection
Posted on June 19, 2015 in MySQL, PHP by Matt Jennings

To prevent hackers from entering MySQL queries into forms that will do damage to my database, I need to Read more


Convert a NOW() Value Insert by MySQL in a Different Format with PHP
Posted on June 19, 2015 in MySQL, PHP by Matt Jennings

When doing a MySQL insert statement using NOW() function, a date will be update with a similar format to …

Read more