Udemy

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

立即報名
  • 5,162 名學生
  • 更新於 9/2021
4.4
(13 個評分)
CTgoodjobs 嚴選優質課程,為職場人士提升競爭力。透過本站連結購買Udemy課程,本站將獲得推廣佣金,有助未來提供更多實用進修課程資訊給讀者。

課程資料

報名日期
全年招生
課程級別
學習模式
修業期
1 小時 50 分鐘
教學語言
英語
授課導師
Armstrong Nana TAGU
評分
4.4
(13 個評分)
4次瀏覽

課程簡介

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

課程章節

  • 3 個章節
  • 27 堂課
  • 第 1 章 Course Introduction and Setup
  • 第 2 章 Connecting to MySQL Database PDO
  • 第 3 章 Your First PDO Wrapper Class using construct method

課程內容

  • 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

此課程所涵蓋的技能


評價

  • N
    Njomo Roland Alongifor
    5.0

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

立即關注瀏覽更多

本網站使用Cookies來改善您的瀏覽體驗,請確定您同意及接受我們的私隱政策使用條款才繼續瀏覽。

我已閱讀及同意