Udemy

PDO & MySQL: Connect to MySQL DB using PDO & CRUD Operations

Enroll Now
  • 5,162 Students
  • Updated 9/2021
4.4
(13 Ratings)
CTgoodjobs selects quality courses to enhance professionals' competitiveness. By purchasing courses through links on our site, we may receive an affiliate commission.

Course Information

Registration period
Year-round Recruitment
Course Level
Study Mode
Duration
1 Hour(s) 50 Minute(s)
Language
English
Taught by
Armstrong Nana TAGU
Rating
4.4
(13 Ratings)
3 views

Course Overview

PDO & MySQL: Connect to MySQL DB using PDO & CRUD Operations

Go from a Beginner to Advance in PDO: Connect to MySQL DB using PDO, Write your first PDO Wrapper class, and do CRUD

  • Do you want to know how to connect to MySQL Database using PDO?

  • Do you want to know how to write PDO Database Wrapper Class and methods the proper way?

  • Do you want to know how to do CRUD operations with PDO?

  • Do you want to know how to use the rowCount() function the proper way? Note that is the most misused function among PHP PDO developers.

  • Do you want to know how to write simple and complex queries with PDO?

  • Do you want to be able to write slim, concise, reusable and secure code?

If your answer to all these is Yes, Then this course is for you.

In this short course, you are going to learn, practice and do some hands-on exercises on how to:

  • Connect to MySQL Database using PDO

  • Write your first PDO Database Wrapper class

  • Write PDO CRUD methods (i.e. function in a class)

  • Write simple queries – queries without parameters

  • Write secure queries with parameters

  • Get data out of statements – using foreach, fetch(), fetchAll(), fetchColumn()

  • Error handling and Exceptions

  • PDO::rowCount() function explained

  • Get affected rows and last insert Id

  • The problem with Limit Clause in prepare statements

  • Write a simple general function and chaining methods

Course Content

  • 3 section(s)
  • 27 lecture(s)
  • Section 1 Course Introduction and Setup
  • Section 2 Connecting to MySQL Database PDO
  • Section 3 Your First PDO Wrapper Class using construct method

What You’ll Learn

  • 1- Connect to MySQL Database using PDO
  • 2- Write simple PDO queries without parameters
  • 3- Write PDO queries with parameters –Prepare statements
  • 4- Get data out of statements using –foreach(), fetch(), fetchAll()
  • 5- Getting data out of statement - PDO::rowCount() – the proper use of the rowCount() function
  • 6- Getting affected rows and last insert id
  • 7- Write a PDO Wrapper class and methods
  • 8- Error handling and Exceptions

Skills covered in this course


Reviews

  • N
    Njomo Roland Alongifor
    5.0

    It is a great match for anyone out there looking to improve on this field

Start FollowingSee all

We use cookies to enhance your experience on our website. Please read and confirm your agreement to our Privacy Policy and Terms and Conditions before continue to browse our website.

Read and Agreed