
Learn how PHP, an open source server-side scripting language, powers cross-platform web pages with Apache and MySQL database interactions.
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.
Declare PHP variables as containers for numeric and text data, starting with a dollar sign and names. Output values with the echo statement and perform arithmetic like x plus y.
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.
Demonstrates using the global keyword to access global variables inside a function, summing x and y to produce 50 via the $GLOBALS array.
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.
Compare php echo and print for outputting text, variables, and html tags. Echo supports multiple parameters and is slightly faster; print outputs a single value.
Explore PHP data types by declaring string and integer variables, using floats and arrays, and handling null and boolean values, with outputs from echo and var_dump.
Explore how PHP objects store data and use a class with public properties like first name, last name, and age, plus a Hello method to output each instance.
Explore PHP string functions such as word count, reverse, and replace, using examples like 'Hello World'. See how to determine string position and perform replacements to manipulate text.
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.
Explore PHP operators, including arithmetic, assignment, comparison, increment and decrement, logical, string, and array operators, with practical examples and outputs.
Master PHP conditional statements, including if, else, else if, and switch, through practical examples with a variable x that outputs 'condition met' or 'condition not met'.
Map a score out of 100 to letter grades using if and else if statements, covering F under 50 through A plus at 90 and above, and test values.
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 while loops and do while loops execute code blocks in PHP, with incrementing x and conditional checks, and preview the for each loop.
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 functions, including built-in and custom ones, define and call functions with the function keyword, use arguments to pass data, and display results with echo.
Explore PHP functions with default parameters using a my_age example where mean_age defaults to 30. Demonstrate the return statement by adding x and y to yield 3, 7, and 10.
Explore PHP arrays, including indexed, associative, and multi-dimensional arrays. Learn to access values by index, count length, and loop with for and foreach, using named keys.
Master PHP multidimensional arrays by organizing student names and two test scores in nested arrays, then access values with row and column indexes to display each student's grades.
Learn PHP array sorting with sort, rsort, and ksort for indexed and associative arrays; sort by value or key, then output results with loops.
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.
Process form data with PHP by validating inputs on the server, using the form action and PHP scripts, and reviewing get and post transmissions and their security.
Learn PHP post versus get basics by building a small form and processing input with post and get methods, and compare data exposure risks.
Build a PHP form that outputs user input on the same page using post method. Validate data with trim and strip slashes, and secure it with html special characters function.
Learn to add PHP form validation using the empty function to require name and website fields, display red error messages, and output data only when both fields are filled.
Advance PHP input validation with preg_match to enforce patterns for names and website formats. Verify that names contain only letters and spaces, and websites follow the correct format for submission.
Explore how PHP scripts interact with MySQL databases through Apache to store user input and enable dynamic, database-driven web applications. Understand databases, tables, fields, rows, and columns, with meaningful names.
Discover how phpMyAdmin provides a graphical interface to administer databases, including creating, deleting, and modifying databases, tables, columns, relations, indexes, users, and permissions, with import/export and SQL execution.
Explore the phpMyAdmin interface, with databases listed on the left and expandable fields, plus top-row admin tools and server information, including MySQL, Apache, and phpMyAdmin version.
Secure MySQL by setting strong passwords for all route users, restricting privileges, and updating config.inc.php to maintain access after password changes.
Create a database and a users table in phpMyAdmin to store registrations, using auto-incrementing primary key, var char fields for first name, last name, and email, and a timestamp.
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.
Assign database and table specific privileges to a new MySQL user, selecting insert and update permissions for specific columns in the users table, with no global privileges.
modify and delete an existing table in MySQL by navigating databases, adjusting structure, deleting columns, and managing data with insert, search, and drop actions, while understanding auto increment keys.
Learn how to modify a database and its tables, create new tables, and perform searches; export, import, rename, delete, or copy databases to back up and manage data.
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.
Learn how phpMyAdmin translates actions into SQL statements, and practice selecting all records and inserting new entries into the users table of a MySQL database.
Connect to the database using mysqli in PHP. Build dynamic, database-driven sites by embedding SQL statements to retrieve, insert, update, and delete records.
Import data into the Mind website database by loading a provided file into the users table via phpMyAdmin, after emptying the table and verifying fourteen records were inserted.
Learn how to use the SQL select statement in PHP to query the users table. Fetch results and display the ID, first name, last name, and email.
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.
Use the end operator to filter records with multiple conditions, selecting emails where first name Ted and last name Smith, and display the matching email address.
The or operator in databases selects records when at least one of two conditions is met, demonstrated by switching from and to or to output Ted or King records.
Use the order by keyword to sort results by one or more columns, with id ascending by default, and descending via dsc, or by first name and last name.
Learn to input data into a MySQL database with a PHP form using the post method, validating fields, and inserting first name, last name, and email into the users table.
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.
Learn to insert multiple records into a MySQL table at once using the insert into statements and a multiple query function, and verify success by refreshing the users table.
Use prepared statements to securely insert repeated data and prevent sql injection, binding three parameters for first name, last name, and email, executing and verifying new records in the database.
Learn to delete records from a MySQL database using the delete statement, via a web interface with per-record delete buttons and a delete page that confirms removal.
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.
Learn how to display a success message after deleting a record by passing a message via URL, using isset and GET in PHP, and echoing record deleted.
Update user records in a MySQL database using a PHP form, loading current first name, last name, and email values, then applying updates by id.
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