
Learn PHP and MySQL with XAMPP across Windows, Mac, and Linux; build a comprehensive website with a shopping cart, login, search, and model view controller architecture.
Learn how to set up the course environment with XAMPP, a cross-platform open source bundle that includes Apache, MySQL, PHP, and Perl.
Install XAMPP on Windows by choosing the Windows installer or zip; it includes Apache, PHP, MySQL, and a control panel, and verify by visiting http://localhost.
Install and configure MAMP on macOS, including downloading the free MAMP version and handling port settings. Verify that Apache and MySQL run correctly and resolve conflicts with existing services.
Download the Linux XAMPP package, extract it to /opt/lampp, and start Apache and MySQL to set up your local web server. Test by opening localhost to view the splash page.
Configure php and mysql by editing php.ini to adjust display_errors, error_reporting, output buffering, memory_limit, max_execution_time, and include_path, then monitor with phpMyAdmin and the advisor.
Configure apache with xampp by editing httpd.conf, enabling modules, and setting virtual hosts to simulate sites. Edit the hosts file to map 127.0.0.1 to your project name and restart apache.
Explore editors and integrated development environments for PHP and MySQL projects, compare differences, and review cross-platform options like Geany, Bluefish, and gedit, plus debugging and pop-up suggestion features in IDEs.
Set up a new website by creating a folder under the xampp/htdocs structure, save your php script in it as hello.php, and access it via localhost.
Discover how to locate and search the PHP and MySQL documentation, navigate by category, and read function references with syntax, parameters, and usage examples.
Discover how to get help for your local XAMPP installation, verify status via localhost and the control panel, and review security and PHP info options.
Learn how to locate the course files, copy them to your local htdocs directory, and set up Apache, MySQL, and phpMyAdmin to run the course exercises.
Build a comprehensive e-commerce website through a step-by-step lab that converts existing pages to PHP, enables product browsing, shopping cart, checkout, memberships, and a contact form.
Review the lab solution for building a new website by converting html pages to php, testing the installation on localhost, and organizing files in the suite's complete folder.
Learn how to create variables in PHP, assign values with the equals sign, name them descriptively with camel case, and echo them to update html quickly.
Explore how PHP handles data types, including integers, floats, strings, and booleans, with assignment and type casting. Learn how escaping quotes and var_dump aid testing and diagnostic purposes.
Master PHP arithmetic by learning to add, subtract, multiply, and divide using operators plus, minus, asterisk, and slash; explore parentheses, combination operators, and increment and decrement with ++ and --.
Learn to annotate PHP code with single-line, inline, and multi-line comments using //, #, and /* */; understand comments as developer notes that do not appear in output.
Learn how to assign constant values in PHP using the defined command, explore predefined constants and magic constants, and see constants defined in integer, float, string, and boolean types.
Learn to use printf in PHP to format strings precisely using a format string, placeholders like %s, %d, %f, and width specifiers that preserve alignment and decimal precision.
Learn to use the substr command in PHP to extract first character, middle portion, and last characters of strings, with examples like initials and file extensions, including negative start positions.
Explore how to join strings with the concatenate operator or echo, trim and measure length, search with case-sensitive and case-insensitive methods, change case with various functions, and replace characters.
Debug PHP by reading error messages, fixing undefined variables, and addressing notices and warnings. Use error reporting and consult Apache and PHP error logs to trace issues.
Learn to mix HTML and PHP by defining quantity and price variables, echoing quantities, formatting prices with printf, calculating item extensions and total, and linking cart.php from index.php.
Demonstrate mixing HTML and PHP by inserting quantity and price variables, echoing values, calculating extended price and totals, replicating blocks for multiple items, and linking cart to index.
Understand numeric keys in PHP arrays: positive integers create 0-based arrays starting at zero, access elements with brackets, and initialize with the array function for strings, integers, floats, and booleans.
Learn how to work with associative arrays in PHP by using string keys, accessing elements with square brackets, and printing a full name with placeholders like first and last.
Explore assigning values to arrays in PHP, including range function for numeric arrays, associative arrays with key-value syntax, appending with empty brackets, and sorting with ksort and sort.
Learn how to create and work with multidimensional arrays in PHP, including numeric and associative arrays, initialization with array and range, single assignments using nested brackets, and accessing specific cells.
Explore PHP array searching with in_array and array_search to locate values and keys, plus strict type checking. Use array_key_exists or isset for keys and count for length, noting zero-based indexing.
Master PHP array sorting by value or key, preserve or reset keys, reverse order, natural sort, and sorting multi-dimensional arrays with array_multisort and related flags.
Learn how to remove values from arrays in PHP using unset, array_pop, and array_shift. Explore removing from the end, the beginning, and handling associative versus numeric arrays.
Learn how to measure differences between arrays using array_diff, returning elements in the first array not in the second, and copy subsections with array_slice using offset and length.
Merge two or more arrays in PHP using the array_merge function, including associative arrays; learn how conflicting keys are overwritten by the second array, producing a merged result.
generate a dropdown menu from an array in php by using a select with a foreach loop, sort the array for ordered output, and connect products pages to the index.
Review how to generate a dropdown from a PHP array by looping titles with foreach, printing option tags, handling errors, and updating the array to dynamically sort and add items.
Learn how to compare values using operators such as double equal and triple equal, evaluate comparison expressions inside if statements, and distinguish numeric and string comparisons.
Learn how to use if, else, and else if in PHP to control program flow, handle branching, and implement nested conditions and default cases on a website.
Explore how switch statements compare to if-else chains, with a practical currency example. Learn when to use switch for many decisions on the same criteria to improve readability and clarity.
Set up a for loop with initialization, condition, and increment, and use it to execute a fixed number of times. Loop through days or states to build a dropdown.
Explore while and do while loops in PHP, including their syntax, when to use them instead of for loops, and applying them to variable-length web data.
Explore how to use a foreach loop to iterate over arrays, access keys and values, compare with other loops, and render form elements like radio buttons in a web page.
Explore how continue, break, and goto control loops in PHP, with examples in foreach and modulus checks, and examine the controversy and alternatives like a flag with a while loop.
Learn to display rows of data on a web page with a PHP for loop using a multidimensional products array to generate dynamic image and title blocks.
Learn to display product data on a page by looping through a products array with a for loop, printing each item's link, image alt, and title, and preparing for pagination.
Explore built-in functions in PHP, learn how extensions expand the language, and use function_exists, get_defined_functions, and phpinfo to discover syntax, return values, and available functions.
Create your own functions to group repeated code and generate HTML lists from arrays while mastering function syntax, parameters, calls, and returning values.
Explore returning values in PHP functions, including when to return values and how to return a fixed string or a variable, and returning multiple values with arrays or objects.
Define mandatory and optional parameters in PHP using default values to prevent missing-argument warnings. See how parameters are declared, passed, and used in a practical address table example.
Learn how to use parameters by reference in PHP, including what a reference is, how references alias locations, and how calling functions by reference makes changes reflect outside the function.
Master how to define PHP functions with a variable number of parameters and access them with func_get_args, then use foreach to build table cells and fill remaining columns.
Understand global and local variables in PHP and how to use global variables inside functions with the global keyword or by passing parameters. Explore the $GLOBALS array and safer alternatives.
Learn to create a PHP function to paginate product data by page and per-page limits, using offset calculations, a configurable products array, and next/previous navigation.
Learn how to create a PHP function display products to paginate data, handle page and offset parameters, build output via concatenation, and implement previous/next links with safety checks.
Define classes in php, instantiate objects, and use properties and methods to organize code. Learn about built-in classes and libraries, including the standard library, that enable reusable, efficient web development.
Define and use properties in a PHP class, showing public properties, data types like string, float, integer, boolean, and array, and how to access them with the object arrow notation.
Learn to create PHP class methods with proper visibility, parameters, return values, and magic methods, then instantiate objects to generate HTML like h1 and ul.
Explore visibility levels in PHP by contrasting public, private, and protected members, show access restrictions inside and outside a class, and cover basic security practices with strip_tags and htmlspecialchars.
Learn how to build classes by inheritance, use extends to inherit from a parent class, and add or override functionality in the child class.
Learn how to handle exceptions in PHP by using try and catch, throwing new exceptions, and recovering gracefully from errors such as division by zero and invalid dates.
Explore the model–view–controller design pattern—showing how the model handles data, the view renders output, and the controller coordinates to build dynamic web pages.
Build an MVC website using OOP by organizing code into model, view, and controller, and convert the display products function into a public method in the new view class.
Builds an MVC website using OOP by creating model and view folders, defining a new class, and moving a function into the class, then accessing it via include.
Learn how the PHP include command loads files into the running program, enabling code reuse, readability, and constants, functions, and classes via include_path for modular development.
Understand how to load code with require in PHP and compare it to include, highlighting fatal errors when files are missing and why critical files must use require.
Learn why loading code once matters. Use include once and require once to safeguard against duplicate function or class definitions that cause a fatal error.
Learn how PHP extensions via PECL expand the language with new functions and classes, and master downloading, compiling, installing, and enabling them for web sites.
Discover php libraries and pear, learn what pear packages are and how to install them, plus encryption packages such as crypt_blowfish, crypt_cbc, and crypt_chap.
Practice downloading and installing an external library (PH mailer) for the lab, follow the GitHub installation procedure, and run a test email to verify delivery.
Discover how to download and install the external PHP library mailer from GitHub, extract it into the pear directory, and run a local test to verify email delivery.
Learn how the f* family commands—f open, f read, f write, f close, and f get CSV—manipulate files with precise pointer control, including CSV parsing and log management.
Explore the file family commands, including file get contents, file put contents, and the file command, and compare them with the F commands for small text files and web development.
Understand streams as a PHP subsystem for file operations across local and remote sources using wrappers, transports, filters, and context for web site development.
update the error log in php with the error_log command, sending messages to a log file or email via the message type parameter.
Parse directory structures in PHP using glob, scandir, and the recursive directory iterator. Compare outputs and learn when to use each for listing files and directories.
Open a csv file in php, read it line by line, and build a products model with getProducts and getTitles that converts each line to an associative array.
Define a php class named products to read a csv file, map rows to associative arrays with labels, and expose get_products and get_titles.
Master RDBMS terminology, including table, row, column, primary key, and foreign key, and learn how relational databases connect data across tables.
Access a MySQL database from the command line, use show databases, select a database with use, inspect tables and columns with show tables and show columns, and exit.
Explore how phpMyAdmin, a browser-based graphical interface, helps you manage MySQL databases, import spreadsheet data, and run direct SQL statements.
Explore configuring phpMyAdmin: edit config.inc, set secure passwords for the root user, switch to the mysql extension, and use the graphical setup, analyzer, and advisor to optimize server performance.
Learn how to create a database and assign user privileges using phpMyAdmin, including choosing collations like UTF-8, and two approaches: create together or separately.
Create a table in phpMyAdmin by selecting the database, naming the table, and defining columns with types like int, varchar, text, date; choose storage engines such as InnoDB or MyISAM.
Manage tables with my admin by adding or altering columns, reviewing and deleting data, and renaming tables; browse, insert, import, export, and edit rows as shown.
Explore how relationships link tables with parent and child roles, including one-to-one, one-to-many, and many-to-many patterns; and learn how indexes like primary key, unique, and standard improve lookups.
Explore how to establish one-to-many relationships between country codes and city area codes, enforce foreign key constraints, and prevent orphaned rows with cascade, restrict, set null, or no action options.
Define tables and relationships for a website using php and mysql by creating a database and user, importing CSV data, and establishing a cascade-enabled parent-child linkage between products and purchases.
Create a database, add a privileged user, and build products and purchases tables with a primary key and a foreign key, then import data and confirm cascading relationships.
Learn how to read data with the select command, using from, where, and wildcard patterns; apply count, min, max, average, and sum, plus order by, group by, limit, and offset.
Learn to insert data into a table using insert into syntax, listing columns and values for single or multiple rows. Explore auto increment keys, defaults, nulls, and foreign key constraints.
Update data with update statements to modify rows and columns using a where clause, and learn how primary keys, foreign key constraints, and cascade on update affect related tables.
Remove data with the delete from command, deleting one or multiple rows via a where clause. Handle foreign key constraints, cascade and restrict options, and avoid orphaned child rows.
Learn to perform advanced join queries across multiple tables using inner, left, and right joins, with on conditions, where clauses, aliases, and sum with group by.
Practice creating select, insert, update, and delete statements to manage a members table. Look up, add, remove, and update members by email; sort products by title with a limit.
Explore creating and querying a MySQL database via phpMyAdmin, building select, insert, update, and delete statements, with joins, limits, and like searches.
A 15 hour PHP & MySQL Training Course Taught By A Zend Certified PHP Trainer, This PHP with MySQL Essential Training Teaches You All You Need To Know.
In this PHP / MySQL training title from InfiniteSkills, you will learn PHP and MySQL and its fundamentals. These two platforms have been virtually inseparable for many years, and major groundbreaking websites such as WordPress, Wikipedia, and Facebook use PHP and MySQL technologies.
This PHP with MySQL Essential Training is designed for the beginner; no previous programming or database experience is required. Your training begins with the absolute basics, covering topics such as creating variables, working with data types and outputting them to a web page. You will learn how to work with arrays, how to use loops and control structures such as for each, while and if. You will learn about functions and creating classes for object-oriented programming. You will master interacting with MySQL and using SQL functions to store and retrieve data. Doug also provides in-depth lessons on how PHP and MySQL can be used to send email, work with date and time functions, use cookies and sessions, building web forms, and much more.
Throughout this PHP with MySQL Essential Training course you will complete labs that re-enforce the concepts you have learnt. Once you have completed this video tutorial you will be well versed in the fundamentals of creating web applications using PHP and MySQL. Working files are included, allowing you to follow along with the author throughout the lessons.
</p>