Ternary Operators in PHP: Shorthand If Else Statements

If-Else statements are a vital part of programming, however sometimes all the code that goes into writing are not required, especially if only only simple condition is needed. This is what the ternary operator is used for. Continue reading “Ternary Operators in PHP: Shorthand If Else Statements”

Cleaning PHP Input Variables Before MySQL Insertion

Ensuring that you properly sanitize your PHP input variables is an essential first-step in making your website secure. Unfortunately, thousands of websites and scripts on the internet do not properly filter variables, causing a very large security vulnerability in these websites. Continue reading “Cleaning PHP Input Variables Before MySQL Insertion”