
Back End DevelopmentPHPBeginner
PHP
Learn the main concepts of PHP and build dynamic web pages by connecting your website to a database!
🚀 Start✓ Free access
📋 Course syllabus
Core concepts
1
00 - Introduction
Lesson
2m
2
00 - PHP syntax
Lesson
2m49
3
01 - Output statements
Lesson
6m04
4
02 - Comments
Lesson
1m34
5
03 - PHP & HTML
Lesson
2m18
6
04 - Variables
Lesson
8m24
7
05 - Concatenation
Lesson
3m06
8
06 - Single vs double quotes
Lesson
2m40
9
07 - Constants
Lesson
6m55
10
08 - Arithmetic operators
Lesson
6m07
11
09 - Comparison operators
Lesson
5m24
12
10 - Logical operators
Lesson
8m28
13
11 - IF - ELSE IF - ELSE conditions
Lesson
9m39
14
12 - Ternary conditions
Lesson
7m45
15
13 - The SWITCH condition
Lesson
4m05
16
14 - The FOR loop
Lesson
7m09
17
15 - The WHILE loop
Lesson
2m21
18
16 - Practical exercise - building an HTML table using loops
Lesson
6m56
19
17 - Arrays
Lesson
12m27
20
18 - The foreach loop
Lesson
4m35
21
19 - Customizing array indexes
Lesson
3m35
22
20 - Multidimensional arrays
Lesson
3m13
23
21 - Built-in functions
Lesson
7m22
24
22 - User-defined functions
Lesson
11m58
25
23 - Exercise - mixing HTML & PHP - introduction
Lesson
1m13
26
23 - Exercise - mixing HTML & PHP - solution
Lesson
5m38
27
24 - File inclusions
Lesson
7m37
Classes and objects
28
1 - Creating classes
Lesson
4m21
29
2 - Creating an object from a class
Lesson
3m20
30
3 - Creating several objects of the same type
Lesson
3m04
31
4 - The this operator
Lesson
3m58
32
5 - Summary
Lesson
2m42
Practical exercise - Managing a site's structure with file inclusions
33
Practical exercise - Managing a site's structure with file inclusions
Exercise
12m26
Understanding the GET method and the $_GET superglobal
34
1 - Adding and understanding the role of URL parameters
Lesson
7m22
35
2 - Passing data from page A to page B
Lesson
4m57
36
3 - Understanding the HTML attributes - method - action - in a form
Lesson
8m21
37
4 - Practical exercise
Lesson
8m45
Understanding the POST method and the $_POST superglobal
38
1 - Introduction
Lesson
0m54
39
2 - Working with the $_POST superglobal
Lesson
5m46
40
3 - Inserting submitted data into a text file
Lesson
5m22
41
4 - Validating fields with $_POST
Lesson
5m24
42
5 - Summary
Lesson
3m16
Understanding the POST method and the $_FILES superglobal
43
1 - Validating all the fields of a form the simple way
Lesson
7m32
44
2 - Handling file uploads with $_FILES
Lesson
10m00
45
3 - Handling error and validation messages
Lesson
7m54
46
4 - Making the file upload optional
Lesson
2m17
Managing cookies in PHP
47
1 - Understanding cookies
Lesson
2m46
48
2 - Choosing a language on a website and saving preferences in a cookie
Lesson
8m20
49
3 - Creating - deleting - updating
Lesson
4m52
Managing a session in PHP
50
1 - Understanding the role of a session
Lesson
4m29
51
2 - Creating a login form with session creation and population
Lesson
6m58
52
3 - Creating a logout link that deletes the session
Lesson
4m58
53
4 - Finishing touches
Lesson
1m51
Connecting to the database with the PDO object
54
1 - Introduction to the PDO object
Lesson
1m39
55
2 - Instantiating a PDO object
Lesson
3m21
56
3 - Creating our database with PhpMyAdmin
Lesson
2m22
57
4 - Testing the database connection
Lesson
1m37
58
5 - Discovering the methods of the PDO object
Lesson
2m14
59
6 - Understanding the database configuration
Lesson
1m34
60
7 - Preparing our database
Lesson
2m16
61
1 - Our first SQL query
Lesson
2m36
62
2 - Fixing the connection problem
Lesson
1m43
63
3 - Inspecting the PDOSTATEMENT object
Lesson
1m44
64
4 - Other useful methods
Lesson
1m27
65
5 - The FETCH method for retrieving data
Lesson
2m33
66
6 - Configuring the FETCH method
Lesson
2m23
67
7 - Going further with the FETCH method
Lesson
2m31
68
8 - Looping through all the data with the FETCH method
Lesson
4m55
69
9 - Introduction to the FETCHALL method
Lesson
2m45
70
10 - Dynamically displaying the columns of the employees table in an HTML table
Lesson
8m10
71
11 - Dynamically populating an HTML table
Lesson
4m20
72
12 - Looping through data with FETCHALL
Lesson
6m56
Modifying database data with exec()
73
1 - Introduction to the exec() method
Lesson
1m16
74
2 - Inserting data with the exec() method
Lesson
7m20
75
3 - Updating data with the exec() method
Lesson
2m54
76
4 - Handling an SQL syntax error
Lesson
1m03
Optimizing your queries with the prepare() and execute() methods
77
1 - Introduction to the prepare() and execute() methods
Lesson
1m40
78
2 - Retrieving employees with conditions
Lesson
4m54
79
3 - The benefit of prepare() and execute() in action
Lesson
1m36
80
4 - Optimizing my query parameters
Lesson
3m54
81
5 - Binding a PHP variable to a named or question-mark placeholder
Lesson
5m57
Managing a transaction and rolling back a query
82
1 - Introduction to transactions
Lesson
3m10
83
2 - Understanding transactions and their benefits
Lesson
3m23
Exercise - Creating Employee objects from database data
84
1 - Introduction to the exercise
Lesson
1m03
85
2 - Solution and explanation
Lesson
3m22
86
3 - Conclusion
Lesson
1m42