Udemy
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
Development
Web Development Data Science Mobile Development Programming Languages Game Development Database Design & Development Software Testing Software Engineering Software Development Tools No-Code Development
Business
Entrepreneurship Communication Management Sales Business Strategy Operations Project Management Business Law Business Analytics & Intelligence Human Resources Industry E-Commerce Media Real Estate Other Business
Finance & Accounting
Accounting & Bookkeeping Compliance Cryptocurrency & Blockchain Economics Finance Finance Cert & Exam Prep Financial Modeling & Analysis Investing & Trading Money Management Tools Taxes Other Finance & Accounting
IT & Software
IT Certifications Network & Security Hardware Operating Systems & Servers Other IT & Software
Office Productivity
Microsoft Apple Google SAP Oracle Other Office Productivity
Personal Development
Personal Transformation Personal Productivity Leadership Career Development Parenting & Relationships Happiness Esoteric Practices Religion & Spirituality Personal Brand Building Creativity Influence Self Esteem & Confidence Stress Management Memory & Study Skills Motivation Other Personal Development
Design
Web Design Graphic Design & Illustration Design Tools User Experience Design Game Design 3D & Animation Fashion Design Architectural Design Interior Design Other Design
Marketing
Digital Marketing Search Engine Optimization Social Media Marketing Branding Marketing Fundamentals Marketing Analytics & Automation Public Relations Paid Advertising Video & Mobile Marketing Content Marketing Growth Hacking Affiliate Marketing Product Marketing Other Marketing
Lifestyle
Arts & Crafts Beauty & Makeup Esoteric Practices Food & Beverage Gaming Home Improvement & Gardening Pet Care & Training Travel Other Lifestyle
Photography & Video
Digital Photography Photography Portrait Photography Photography Tools Commercial Photography Video Design Other Photography & Video
Health & Fitness
Fitness General Health Sports Nutrition & Diet Yoga Mental Health Martial Arts & Self Defense Safety & First Aid Dance Meditation Other Health & Fitness
Music
Instruments Music Production Music Fundamentals Vocal Music Techniques Music Software Other Music
Teaching & Academics
Engineering Humanities Math Science Online Education Social Science Language Learning Teacher Training Test Prep Other Teaching & Academics
Web Development JavaScript React Angular CSS Node.Js PHP HTML5 Vue JS
AWS Certification Microsoft Certification AWS Certified Solutions Architect - Associate AWS Certified Cloud Practitioner CompTIA A+ Amazon AWS Cisco CCNA Microsoft AZ-900 CompTIA Security+
Microsoft Power BI SQL Tableau Data Modeling Business Analysis Business Intelligence MySQL Qlik Sense Data Analysis
Unity Unreal Engine Game Development Fundamentals C# 3D Game Development C++ Unreal Engine Blueprints 2D Game Development Mobile Game Development
Google Flutter iOS Development Android Development Swift React Native Dart (programming language) Kotlin Mobile App Development SwiftUI
Graphic Design Photoshop Adobe Illustrator Drawing Digital Painting Canva InDesign Character Design Procreate Digital Illustration App
Life Coach Training Neuro-Linguistic Programming Personal Development Personal Transformation Life Purpose Mindfulness Sound Therapy Meditation Coaching
Business Fundamentals Entrepreneurship Fundamentals Freelancing Business Strategy Startup Business Plan Online Business Blogging Leadership
Digital Marketing Social Media Marketing Marketing Strategy Internet Marketing Google Analytics Email Marketing Copywriting YouTube Marketing Startup

DevelopmentWeb DevelopmentPDO

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
Rating: 4.4 out of 54.4 (11 ratings)
5,159 students
Created by Armstrong Nana TAGU
Last updated 9/2021
English

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

Requirements

  • 1. Basic knowledge in PHP , and MySQL (Basic Concept in PHP & MySQL, are not covered in the course)
  • 2. Comfortable working with any PHP development environment – XAMPP, MAMP, WampServer, EasyPHP etc
  • 3. Comfortable working with any text editor – for example: notepad++, Visual Studio Code, Atom, Sublime
  • 4. Knowledge in OOP and PDO will be a plus but not compulsory. Everything is explained from scratch.

Description

  • 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

Who this course is for:

  • 1. PHP | PDO enthusiasts
  • 2. Newbie in PDO
  • 3. Freelance web developers who want to get a better grasp in PHP | PDO
  • 4. Intermediate PHP|PDO developers who want to write slimmer, concise, more secure codes.
  • 5. Experience PHP developers who are still struggling with PDO

Instructor

Armstrong Nana TAGU
Teacher turned web developer!
Armstrong Nana TAGU
  • 4.4 Instructor Rating
  • 11 Reviews
  • 5,169 Students
  • 2 Courses

TAGU is a Chemistry teacher turned Web developer. He has over 10 years teaching experience in Chemistry, IT, and TEFL. He knows how to explain difficult concepts so everyone can understand. He has been a student in web development, and after studying under various instructors, he has decided to write a course that will address some of the shortcomings of his instructors. He is not above these instructors but let’s be honest every teacher has his draw backs. He understands the challenges students face and seeks to address this in his unique teaching styles incorporating explanation with practice. He has gone in great length in bringing out the awesome features of PDO while at the same time showing you how to write PDO the proper way.

He takes web security very seriously. He is the author of the book "Web Security Vulnerabilities and how to prevent them. An Introduction to writing secure PHP | PDO Code".

Top companies choose Udemy Business to build in-demand career skills.
NasdaqVolkswagenBoxNetAppEventbrite
  • Udemy Business
  • Teach on Udemy
  • Get the app
  • About us
  • Contact us
  • Careers
  • Blog
  • Help and Support
  • Affiliate
  • Investors
  • Impressum Kontakt
  • Terms
  • Privacy policy
  • Cookie settings
  • Sitemap
  • Accessibility statement
Udemy
© 2022 Udemy, Inc.