Pdo PHP
Pdo PHP
by
Rusty Keele
This Presentation Is For People Who…
• Want to learn the basics of PHP Data Objects (PDO)
• An overview of PDO
• Wrap up
My Story
My History with Programming
• Started on a Commodore 64 – in
1982!
• B.A. in Computer Science from
Weber State University
• 9 years as a full time programmer –
mostly PHP
• Worked for Utah Education
Network the last 4 years
How I Got Started With PDO
• What I inherited at UEN
• Prepared statements
• Rewriting code
• Prepared statements
• a kind of compiled template for the SQL that an application runs
• can be customized using variable parameters
• prepare once – execute multiple times
• don't need to be quoted – which helps defend against SQL injection!
Using PDO
Connecting To A Database
• Connect
• Close
• Handle errors
Prepared Statements: Reading Data
• Using named placeholders
• cartwheel by Julie
Feedback And Questions
• Please rate my presentation and give feedback
• https://joind.in/13933
• Questions? Comments?