
Launch your local testing server (WAMP or MAMP) to run PHP scripts, then store them in the web root (www) and organize sites in dedicated folders like p2p lessons.
Create and run a basic php file that outputs hello world in the browser, confirming local server configuration and saving the file as intro.php in the php lessons folder.
Explore PHP syntax basics: placing code, echo statements, and comments, plus variable case sensitivity and how to surface error messages in the browser.
Explore PHP variable scope by contrasting global and local scope, demonstrating how variables outside functions are inaccessible inside functions, and how echoes trigger undefined variable errors.
Explore how PHP's static keyword lets a local variable retain its value between function calls, shown by test function that initializes x to 10 and outputs 10, 11, 12, 13.
Understand php constants, identifiers for fixed values that cannot change and are global across a script; create them with the defined function, and choose case sensitive or case insensitive names.
Identify how a switch statement compares an expression to predefined cases and executes the matching block, outputting messages like 'you drive a Volvo' or 'you don't drive' when no match.
Explore how to use the PHP for loop with its three parameters to repeat code a set number of times, and apply foreach to iterate arrays like a car list.
Explore PHP superglobals, built-in variables always available, and how a function's global variable can be accessed outside it, plus server superglobals reveal headers, script locations, and the host name.
Secure MySQL by setting strong passwords for all route users, restricting privileges, and updating config.inc.php to maintain access after password changes.
Learn how to create a new MySQL user, assign database- or table-specific privileges, avoid global privileges, set host restrictions, and configure data, structure, and administration privileges.
Explore how sql, or structured query language, communicates with relational database management systems using phpmyadmin to create tables, add records, and modify users, with cross-database compatibility.
Connect to the database using mysqli in PHP. Build dynamic, database-driven sites by embedding SQL statements to retrieve, insert, update, and delete records.
Apply the distinct keyword in a select statement to output only unique values from the users table, eliminating duplicates and displaying only the first name.
Learn to filter data with the sql where clause by crafting select statements that extract records meeting a condition, such as a first name or id, using proper quote syntax.
Demonstrate retrieving the last inserted or updated ID with the Get last ID function, echoing it after a successful insert, and verifying the value in phpMyAdmin.
Apply the PHP header function to automatically redirect after a deletion, replacing echo with a location header to return to delete.php and avoid manual back navigation.
Welcome to the PHP & MySQL Certification Course for Beginners.
This course offers a comprehensive guide to learning how to code in PHP. We also explore integrating MySQL Databases into your PHP Projects for dynamic, user driven functionality.
We start with PHP basics, including variable declaration and data output. The lessons then transition into working with objects, conditional statements, loops, functions, arrays, form validation, sorting, and much more.
After the PHP Section, students learn to unleash the true power of dynamic page development with MySQL database integration. We start with table creation and user management. From there we progress into commonly used SQL statements for database administration. Students are also taught how to create database connections and to execute SQL statements directly from PHP scripts. Our coding style keeps script security, and execution efficiency in mind at all times.
If you are interested in embarking into the world of PHP Development with Database integration, don’t wait another second. Enrol today in this exciting new course.
What you'll learn - Overview:
PHP Variables, Syntax, Variable Scope, Keywords
Echo vs. Print and Data Output
PHP Strings, Constants, Operators
PHP Conditional Statements
PHP Elseif, Switch, Statements
PHP Loops - While, For
PHP Functions
PHP Arrays, Multidimensional Arrays, Sorting Arrays
Working with Forms - Post vs. Get
PHP Server Side - Form Validation
Creating MySQL Databases
Database Administration with PhpMyAdmin
Administering Database Users, and Defining User Roles
SQL Statements - Select, Where, And, Or, Insert, Get Last ID
MySQL Prepared Statements and Multiple Record Insertion
PHP Isset
MySQL - Updating Records