Richard Stibbard's "MySQL/PDO Connection" – A mini-course
Richard Stibbard's "MySQL/PDO Connection" – A mini-course, available at Free, has an average rating of 4.2, with 9 lectures, based on 136 reviews, and has 6226 subscribers.
You will learn about How to connect to a MySQL database using PDO in PHP This course is ideal for individuals who are Beginner web developer students learning PHP It is particularly useful for Beginner web developer students learning PHP.
Enroll now: Richard Stibbard's "MySQL/PDO Connection" – A mini-course
Summary
Title: Richard Stibbard's "MySQL/PDO Connection" – A mini-course
Price: Free
Average Rating: 4.2
Number of Lectures: 9
Number of Published Lectures: 9
Number of Curriculum Items: 9
Number of Published Curriculum Objects: 9
Original Price: Free
Quality Status: approved
Status: Live
What You Will Learn
- How to connect to a MySQL database using PDO in PHP
Who Should Attend
- Beginner web developer students learning PHP
Target Audiences
- Beginner web developer students learning PHP
First launched in 2014, this simple “evergreen” series of short tutorials has proven popular ever since, and shows how to connect to a MySQL database using a PDO connection and display the database records in the browser.
Why use PDO?
There is a choice of only two ways to connect to a MySQL database, either mysqli, the ‘i’ standing for ‘improved’, or PDO. All the old mysql_* commands are long-since deprecatedand inherently a security risk. No mysql_* commands should be used any more, and they should be replaced in old code.
Both PDO and mysqli are equivalent in terms of security as both support prepared statements, meaning that user input is not entered straight into the SQL query but sent along a different channel where it is sanitised and safe to use. Both remove the risk of SQL injection inherent in using mysql_ commands.
Unlike mysqli, PDO supports named parameters and placeholder question marks; mysqli only supports placeholders. I will show how to work with both in this tutorial and you will see that named parameters are an easier and more convenient way of working with database fields easier.
Unlike mysqli, PDO supports many different database vendors – mysqli as we would gather from the name, only supports MySQL databases. If you did have to swap from one database type to another you would still have work to do as the SQL queries would be different, but at least it would be possible without many changes.
In summary, PDO is secure, flexible, and convenient and the best choice for all new projects and updates, so let’s get started.
This tutorial assumes you know how to create a MySQL database in phpMyAdmin on your local machine, but to speed things up I provide an SQL file for you to import the database you need to do the course into phpMyAdmin.
Course Curriculum
Chapter 1: MySQL/PDO Connection
Lecture 1: Introduction
Lecture 2: Lesson 1 – Connection
Lecture 3: Lesson 2 – Error catching
Lecture 4: Lesson 3 – Query method
Lecture 5: Lesson 4 – Fetch method
Lecture 6: Lesson 5 – FetchAll method
Lecture 7: Lesson 6 – Prepared statements with placeholders
Lecture 8: Lesson 7 – Prepared statements with named parameters
Lecture 9: Lesson 8 – Insert, update and delete records
Instructors
-
Richard Stibbard
Web Developer and Online Educator
Rating Distribution
- 1 stars: 3 votes
- 2 stars: 4 votes
- 3 stars: 11 votes
- 4 stars: 48 votes
- 5 stars: 70 votes
Frequently Asked Questions
How long do I have access to the course materials?
You can view and review the lecture materials indefinitely, like an on-demand channel.
Can I take my courses with me wherever I go?
Definitely! If you have an internet connection, courses on Udemy are available on any device at any time. If you don’t have an internet connection, some instructors also let their students download course lectures. That’s up to the instructor though, so make sure you get on their good side!
You may also like
- Digital Marketing Foundation Course
- Google Shopping Ads Digital Marketing Course
- Multi Cloud Infrastructure for beginners
- Master Lead Generation: Grow Subscribers & Sales with Popups
- Complete Copywriting System : write to sell with ease
- Product Positioning Masterclass: Unlock Market Traction
- How to Promote Your Webinar and Get More Attendees?
- Digital Marketing Courses
- Create music with Artificial Intelligence in this new market
- Create CONVERTING UGC Content So Brands Will Pay You More
- Podcast: The top 8 ways to monetize by Podcasting
- TikTok Marketing Mastery: Learn to Grow & Go Viral
- Free Digital Marketing Basics Course in Hindi
- MailChimp Free Mailing Lists: MailChimp Email Marketing
- Automate Digital Marketing & Social Media with Generative AI
- Google Ads MasterClass – All Advanced Features
- Online Course Creator: Create & Sell Online Courses Today!
- Introduction to SEO – Basic Principles of SEO
- Affiliate Marketing For Beginners: Go From Novice To Pro
- Effective Website Planning Made Simple