Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Learn PHP PDO Mysql Basics CRUD Operations
Rating: 4.4 out of 5(63 ratings)
6,475 students

Learn PHP PDO Mysql Basics CRUD Operations

Basics php pdo crud operations
Created byMohammad Faizan
Last updated 8/2021
English
English [Auto],

What you'll learn

  • Student will learn how to create database connection using PDO with my SQL
  • Student will learn how to insert data into database using PDO
  • Student will learn how to read data and update data using PHP pdo
  • Student will learn how to delete data from database using PHP pdo using mysql

Course content

1 section11 lectures1h 53m total length
  • Bracket Text Editor Installation2:59

    Install Brackets, an open source text editor, from its official site, run the installer, and open the editor to create simple code and pages for PHP and MySQL projects.

  • xampp server installation4:24

    Learn how to download and install the XAMPP server on Windows and Linux, use the control panel to manage services, and access the htdocs directory for PHP and MySQL development.

  • Crud and Database Connection15:40

    Master PHP PDO MySQL basics by performing create, read, update, and delete operations with prepared statements, parameter binding, and a proper database connection.

  • Crud Insert Data18:43

    Learn how to insert data into a MySQL database using PHP PDO, including building an HTML form, posting input, and using prepared statements with placeholders for secure inserts.

  • Crud Read-Select Data-part-018:08

    Learn to select data from the database with a prepared statement, execute, and fetch results to display all product records (id, name, price) in the browser using PHP PDO.

  • Crud Read-Select Data-part-028:10

    Learn how to select data from a database using PDO, fetch results as associative arrays or numeric indexes, retrieve a single record with various fetch methods, and display product data.

  • Crud Read-Select Data-part-033:37

    Learn how to read all rows with the PHP PDO fetchAll method. Compare it to loops and explore fetch modes, including associative arrays, objects, and class fetching.

  • Crud Show data into HTML Table8:39

    Create an HTML table and display MySQL data with PHP PDO by running a select query, looping results, and rendering id, product name, and price with edit and delete controls.

  • Crud edit Button14:33

    Learn to implement a CRUD edit workflow in PHP with PDO and MySQL, using an edit button to update product name and price via a form.

  • Crud Update Data20:17

    Learn how to update data in a PHP PDO MySQL CRUD workflow using placeholders, id-based targeting, and input validation to prevent empty fields and SQL injections.

  • Crud Delete Data8:40

    Learn to implement a delete feature in PHP with PDO for MySQL, wiring a delete button, using post to pass row id, and executing a delete query.

Requirements

  • Some basics knowledge of PHP and MySQL qeries

Description

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

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.

Who this course is for:

  • Beginner Web Developers

  • Beginner PHP Developers

Who this course is for:

  • This course is for that student who wants to learn basics crud operations using pdo