
An introduction to what you will learn in this course and also a demo of the final project that we are going to create in this course.
This is a short video on what is PDO. Some major advantages of using PDO is also discussed in this video.
In this lecture, you will learn how the PDO code is written. We won't write any code in this video, but you will get a basic idea of how you should go about coding the page.
In this lecture, learn how to create a local server for your web development. Whenever you start with a project you should start with a local server. After developing the website completely and testing it, you can move it to a web server.
We will be using a tool called XAMPP to create a local server for our PHP development.
In this lecture, you will learn how to create a new MySQL database and create a table in it.
Learn how to connect to a database using PDO. We will just echo "Database Connection Successful" if the database is connected.
Learn to insert data into the database we created. We will be making use of the PDO process that we discussed in the Introduction section.
In this lecture, you will learn how to get data from the database. We will be creating a new method in our DB class and write the code for getting the data there. Then we can call the method by instantiating the class anywhere in our project.
Learn how to delete data from a database in this video.
There is a method in PDO called rowCount() which returns the result of the number of rows affected by the previous database operation. In this video, I demonstrate how to get the number of rows deleted from a database.
In this lecture, I talk about how to update data in a database.
In this lecture, learn how to search in a database and display the result on the screen. I also have attached the source code for this project in this lecture. Please check it out if you have any problems with your code.
This is the final project that we are creating in this course. We are creating a complete CRUD web application with live search. In this video, I have added the time-lapse of me writing the markup for the project.
Here is a time-lapse of me writing the CSS for the final project. I have attached the source code to this lecture.
In this lecture, we actually write the code for the CRUD operations in the project. We will reuse some of the code from the previous project that we created.
In this lecture, I will implement live search on the final project. We will use the new fetch API in ES6 to accomplish this. I have attached the source code to this lecture.
In this course, you will learn how to use PDO (PHP Data Objects) in PHP to perform operations on a database securely. We will be using the MySQL database in this class. But you can use other supported databases and almost all the code will be the same.
We will be using an Object-oriented approach to write the PHP code. So, you will even learn how to create a class, instantiate it and call the methods on the object.
At last, I will develop a web page where all the knowledge you have acquired during the course will be used to create a complete CRUD web page. As a bonus lecture, I will also show you how to code the Live Search mechanism in your webpage where you can perform operations on the database without reloading the page.
For taking this course, it is would be great if you have the following prerequisites:
Basic knowledge of HTML and CSS
Although there are these prerequisites, I will explain each and every line of code that we are going to write. So, even if you are a complete beginner, you can join in. Just follow along and you will learn a lot.
After completing this course, you will be able to perform Insert, Delete, Update and Select operations on your database. This will help you in creating backend applications.
Some examples where you can use this knowledge are:
Creating a to-do application
Creating a blog
Creating a simple registration system
Creating contact form
And more…
I will you all the best. Keep learning and happy coding.