PHP is an open source, server-side web-scripting language that is compatible with all the major web servers (most notably Apache) and databases.
By the help of PHP code you can create dynamic website content. Dynamic Web sites are flexible applications than merely sites.
If you know HTML, but you have no experience in the field of programming, you can easily learn PHP and MySQL with the help of this course.
This course starts from the most simple, explaining the operations of the PHP language, and then move on to detail how to create PHP programs, how to load the PHP scripts, and to the final approach more complex items, such as SQL commands, working with MySQL database, using classes and OOP (Object Oriented Programming) in PHP.

• Useful questions and answers on Forum PHP - MySQL.

PHP Basic (beginner)

  1. Writing PHP scripts
    - Writing PHP scripts, learn about PHP code structure, how to write and execute a simple PHP script and to add comments within your code.
  2. Variables and Data Types
    - Learn about Variables, values and Data Types in PHP: boolean, integer, float, string, array, object, Resource, null.
  3. Numbers and mathematical 0perators
    - Introducing Numbers and mathematical 0perators, some PHP functions for more complex operations with numbers.
  4. PHP Strings
    - Working with strings, using simple and double quotes, escaping quotes and other characters, concatenating strings, some functions for strings.
  5. Constants
    - Introducing Constants, syntax for defining constants, differences between variables and defined constants.
  6. Superglobal $_SERVER Array
    - Get information such as headers, paths, and script locations by using elements from Superglobal $_SERVER Array.
  7. PHP Error Handling and Debugging
    - PHP MySQL course - Error Handling, debugging and trigger errors and how to adjust the level of error reporting, handling exceptions.
  8. If ... Else conditionals, Comparative and Logical operators
    - Make PHP script takes decisions with If, Else, Elseif conditional statements. Compare two values with Comparative and Logical operators. The ternary operator.
  9. Using HTML Forms
    - Using HTML Forms, PHP form handling, get data sent from form fields through GET and POST method, form validation.
  10. $_GET, $_POST and $_REQUEST Variables
    - How to send data with get and post methods to a PHP script and access it with superglobal $_GET, $_POST and $_REQUEST variables.
  11. PHP Switch ... Case ...
    - PHP MySQL course - Switch ... Case ... conditional statement, switch with break and default instructions.
  12. While Loops
    - Using While and Do Wile Loops. End the While loops with the break instruction. Syntax and examples.
  13. For and Foreach Loops
    - Using for() and foreach() Loops. End the "For" loops with the break instruction. Syntax and examples.
  14. PHP Arrays
    - Creating Numeric (indexed) Arrays and Associative arrays. Accessing, modifying and traversing array elements.
  15. Multidimensional arrays and array functions
    - Creating and working with multidimensional arrays, some array functions, traversing and sorting multidimensional array elements.
  16. PHP functions
    - Creating and using your own functions with or without parameters, calling functions, the return statement, recursive functions.
  17. Functions, Variable scope and Passing by Reference
    - Variable scope and Functions. Using GLOBAL and STATIC variables, passing variables by Reference.

PHP Advanced

  1. PHP Anonymous functions - Closures
    - About Anonymous Functions, also known as Closures, how to create and use closures.
  2. Include and Require
    - Insert the content of external files into a PHP file with Include and Require functions, include_once, require_once.
  3. File Handling with fopen
    - File Handling with fopen(), create new file, write and read text file content with fopen(), fwrite(), fread() and fgets() functions. Moving the internal pointer, rewind() and fseek().
  4. File Upload
    - This lesson shows how to upload files on the server, with PHP and an HTML form. Uploading files script.
  5. Exploring Folders
    - Exploring the Folder system, creating folders with PHP, reading a directory content. Get information about a file path.
  6. PHP Cookies
    - Setting and accesing cookies with PHP, retrieve a Cookie value, deleting cookies.
  7. PHP Sessions
    - Setting and handling Session variables. Accessing and deleting session, destroy sessions. Store encrypted data in sessions.
  8. RegExp - Regular Expressions
    - RegExp patterns - Regular Expressions. Examples with preg_match, preg_match_all, and preg_replace functions for string matching and string substituting operations.
  9. PHP Date and Time
    - Date and Time functions, handle date and time information, UNIX timestamp, set and get time values.
  10. PHP DateTime and DateTimeZone classes
    - Handle date and time information with PHP DateTime and DateTimeZone classes and objects, reset /change Timezone, get the difference between two dates.
  11. PHP Sending E-mails
    - Sending E-mails, mail() function. Create a mail contact form script, validate e-mail address, filter input email data, and add the "From", "Conten-Type" (utf-8), and "Reply-To" headers in the email.


  1. PHP MySQL Introduction, Data Types
    - PHP MySQL Introduction, database structure, tables. MySQL naming rules, and column's data types.


  1. PHP MySQL - using MySQLi
    - Using MySQLi object-oriented (MySQL Improved) to connect to MySQL server. Perform SQL queries to create a database and tables.
    - Insert data in MySQL table with MySQLi object, INSERT INTO query. Get the auto ID from the last INSERT query with insert_id() method. Insert data from a form into a database.
    - Retrieve and display data from a MySQL table, SELECT SQL command. Determine the number of records to return with the LIMIT option. Sort query results with ORDER BY clause (ASC and DESC).
    - Selecting specific data from a database with the WHERE clause and Conditionals. Check for string matching with LIKE and NOT LIKE terms.
    - UPDATE query to edit / change existing records in MySQL table.
    - The DELETE statement, used to entirely remove records from a database table.
  7. MySQL Aliases and Functions
    - Using MySQL Aliases and functions, text, numeric / mathematical, and date and time functions.


  1. PHP PDO - Introduction and Connecting to Databases
    - Introduction to PHP PDO, Connecting to various databases, MySQL, PostgreSQL, SQLite, Firebird, MS-Access.
    - Using the exec() method to perform MySQL query, INSERT, UPDATE, DELETE.
  3. PHP PDO - Select query, fetch
    - Select data in a MySQL table using the PDO query method, and FETCH constants.
  4. PHP PDO - prepare and execute
    - How to use the prepare() and execute() methods to perform SQL queries, bindParam, and bindValue.
  5. PHP PDO - setAttribute, beginTransaction and commit
    - setAttribute(), beginTransaction(), and commit(). Determine how to handle the errors, and execute multiple different SQL queries.

OOP - Classes and Objects

  1. PHP OOP - Creating Classes and Objects
    - OOP (object-oriented programming), creating classes and objects. Setting properties and methods in a class, with public, private or protected attribute. Instantiate an object of a class.
  2. OOP - Constructor Method
    - Creating classes with a Constructor Method, __construct(). Setting optional parameters in a constructor method.
  3. OOP - Accessor and Destructor methods
    - How to use Accessor methods to set and get property values, defining Destructor methods. PHP functions for checking data type.
  4. OOP - Constants, Static Properties and Methods
    - Defining and accessing class Constants, Static Properties and Static Methods.
  5. OOP - inheritance, class extends
    - Inheritance, learn how to extend a class, create subclasses (child classes) that inherit all of the public and protected methods from a parent class. Overriding methods.
  6. OOP - Final Classes and Methods
    - OOP - Final Classes and Methods, how to create a class that cannot be extended, and methods that cannot be overridden.
  7. Magic Methods __get, __set, __call, __toString
    - About Magic (or interceptor) Methods and their utility in classes, __get, __set, __call, __toString.
  8. OOP - Abstract classes
    - Creating Abstract classes and methods, extends an abstract class.
  9. PHP OOP - Interfaces
    - Interface, a special class used like a template for classes, defines the methods required in a group of similar classes.
  10. Functions with Object and Array arguments
    - How to set functions to accept only certain data type for its parameters, Object and Array arguments.
  11. PHP Method Chaining
    - Learn how to chain public and static methods invocations in single instruction.



  1. getElementById and getElementsByTagName
    - Learn how to get HTML elements from a HTML document using getElementById() and getElementsByTagName(), methods of the DOMDocument class.
  2. Working with HTML attributes in PHP
    - Learn how to use the functions of the DOMElement class to read, set and remove attributes in HTML elements; getAttribute(), hasAttribute(), setAttribute(), and removeAttribute().


  1. XML Documents
    - XML Documents, a brief introduction of initiation, the syntax and structure of an XML document. XML and DTD (Document Type Definition).
    - Creating XML documents with PHP XML DOM (Document Object Model), DomDocument object, read and modify data in XML documents.
  3. SimpleXML
    - PHP MySQL course - Using the SimpleXML functions to read and modify XML content.

Daily Test with Code Example

Which tag defines the clickable areas inside the image map?
<map> <img> <area>
<img src="image.jpg" usemap="#map1">
<map name="map1">
  <area shape="rect" coords="9, 120, 56, 149" href="#">
  <area shape="rect" coords="100, 200, 156, 249" href="#">
Which CSS property defines what is done if the content in a box is too big for its defined space?
display overflow position
#id {
  overflow: auto;
Click on the event which is triggered when the mouse is positioned over an object.
onclick onmouseover onmouseout
document.getElementById("id").onmouseover = function(){
  document.write("Have Good Life");
Indicate the PHP variable that contains data added in URL address after the "?" character.
if(isset($_GET["id"])) {
  echo $_GET["id"];
PHP-MySQL free course, online tutorials PHP MySQL code

Last accessed pages

  1. CKEditor Free Image Uploader Addon (5159)
  2. Read Excel file data in PHP - PhpExcelReader (48619)
  3. Download HTML - XHTML resources (2413)
  4. HTML Course - Free Lessons (9844)
  5. Courses Web: PHP-MySQL JavaScript Ajax HTML CSS Flash-AS3 (59697)

Popular pages this month

  1. Qwop (10555)
  2. Drag Racer V3 (6224)
  3. Flash Games - Free online Games (2162)
  4. List with All the Games (2073)
  5. Bubbles3 (1995)