MySQL Introduction (NEW)

MySQL – PHP Prepared Statements

Prepared statements help prevent SQL Injection attacks. Essentially they send a template for your SQL Statement, and then inserts the variables separately. This prevents hackers from escaping out of the original SQL statement and being […]

PHP Programming (NEW)

PHP – Creating Arrays

Arrays allow for a variable to have multiple values.  This gives you the ability to create lists of names, and be able to sort them easily.  Also it allows you to have values from a […]

PHP Programming (NEW)

PHP – if Statements

If Statements allow you to trigger code if specific conditions are met.   <?php $age = 20; print “Your Age is $age”; print “<br>”; if ($age < 18) { print “you too YOUNG”; } ?>

PHP Programming (NEW)

PHP – Comments

Commenting code allows you to add notations to you script to explain why it was written how it was. You can also use commenting to keep specific code from running during troubleshooting.   <?php /* […]

PHP Programming (NEW)

PHP – Setting Variables

Variables in PHP can be set without needing to be declared.   <?php $string = “Hello World”; $int = 1; $float = 2.2; print “<h1>String</h1>”; print $string; print “<h1>Int</h1>”; print $int; print “<h1>Float</h1>”; print $float; […]

PHP Programming (NEW)

PHP – Why Learn…

Why should you learn PHP when there are two many “better” languages available? It’s easy to learn. You can build practical web apps within a week of starting. Finally a huge number of legacy web […]

PHP Programming (NEW)

PHP – What is…

PHP is a Hypertext Preprocessor. This essentially means that PHP dynamically writes web pages for you. So it can query a database and print a report from it, or change CSS and such based on […]