Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
PHP & MySQL - Certification Course for Beginners
Rating: 4.2 out of 5(4,602 ratings)
288,205 students

PHP & MySQL - Certification Course for Beginners

Learn to Build Database Driven Web Applications using PHP & MySQL
Last updated 7/2019
English
English [Auto],

What you'll learn

  • 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

Course content

2 sections57 lectures3h 15m total length
  • PHP Introduction3:03

    Learn how PHP, an open source server-side scripting language, powers cross-platform web pages with Apache and MySQL database interactions.

  • PHP Preparation2:55

    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.

  • PHP File Test2:20

    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.

  • PHP Syntax5:37

    Explore PHP syntax basics: placing code, echo statements, and comments, plus variable case sensitivity and how to surface error messages in the browser.

  • PHP Variables3:46

    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.

  • PHP Variable Scope3:15

    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.

  • PHP Global Keyword2:03

    Demonstrates using the global keyword to access global variables inside a function, summing x and y to produce 50 via the $GLOBALS array.

  • PHP Static Keyword1:45

    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.

  • PHP Echo vs Print4:01

    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.

  • PHP Data Types5:46

    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.

  • PHP Objects2:58

    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.

  • PHP Strings1:50

    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.

  • PHP Constants3:04

    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.

  • PHP Operators8:52

    Explore PHP operators, including arithmetic, assignment, comparison, increment and decrement, logical, string, and array operators, with practical examples and outputs.

  • PHP Conditional Statements2:32

    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'.

  • PHP ElseIf Statement3:11

    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.

  • PHP Switch Statement1:45

    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.

  • PHP While Loops4:34

    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.

  • PHP For Loops1:40

    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.

  • PHP Functions3:29

    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.

  • PHP Functions Continued1:49

    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.

  • PHP Arrays4:51

    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.

  • PHP Multidimensional Arrays1:59

    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.

  • PHP Sorting Arrays2:51

    Learn PHP array sorting with sort, rsort, and ksort for indexed and associative arrays; sort by value or key, then output results with loops.

  • PHP Superglobal Variables2:10

    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.

  • PHP Forms Introduction4:06

    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.

  • PHP POST vs GET Basics5:24

    Learn PHP post versus get basics by building a small form and processing input with post and get methods, and compare data exposure risks.

  • PHP Form Output and Validation9:36

    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.

  • PHP Form Required Fields4:40

    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.

  • PHP Validation Continued1:45

    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.

Requirements

  • Basic Computer Skills

Description

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

Who this course is for:

  • Beginner developers who are interested in learning the foundations of PHP.
  • Students who want to integrate MySQL Databases into their PHP Web Applications.
  • Students who want to learn to code in PHP.
  • Students who want to learn how to execute SQL Statements, directly from PHP.