Classes
- Naming Convention
- Functions
- $this
- The Public Keyword
Constructors and Destructors
- Constructors
- Destructors
- Magic Methods
Static Methods and Properties
- Static Properties
- Static Methods
- The self Keyword
Connect to MySQL
- Using PDO
- Connecting to MySQL via PDO
Query the DB
- Using PDO to Execute Queries
- Last Insert ID
Query and Results
- Retrieving Data
- Using query() and PDOStatement
- Results Metadata
- Fetching Row(s)
Prepared Statements
- Dynamic Queries and User Input
- The Trouble with Quotes
- Question Mark Parameters
- Binding Values Directly
- Named Parameters
- Using bindValue()
Inheritance
- Using Inheritance
- More on Inheritance
Intro to Magic Methods
- Using __get() and __set()
- __set()
- __get()
Inheritance and Overriding
- Examples of Overriding
- Calling Parent Methods
Visibility
- Using Visibility
- Getters and Setters
- Setters
- Getters