PHP PDO Tutorial Connect Database and Query Example

preview_player
Показать описание
Learn how to connect to a mysql database and query it using the PDO extension in PHP. After this PDO coding exercise we conduct a mysqli vs PDO discussion that you may find informative.
Рекомендации по теме
Комментарии
Автор

Just what I needed! Merci mille fois 😀

faraitanekha
Автор

Could you do a video going more in depth regarding using prepared statements and the benefits of it? I'm fairly new to PHP and am worried about the safety of my code. I heard that using prepared statements provide an extra layer of safety.
Correct me if I am wrong about this.

Tomtommer
Автор

Nicely explained Adam .... I love your video tutorials ... You explains every line very clearly ... Thumbs up for the good work :)

Sithirasm
Автор

Great Video :) Thank you for explaining the differences!

DIGITALONESOLUTIONS
Автор

Usefull serie came up just when i started using PHP PDO. AMAZING :333

rodin
Автор

Thanks a lot again Adam. I asked you if you could make a video about this and here it is. You're the best bro!

alessandrosalzo
Автор

I should use MySQLi if I need a database connection. Much cleaner to me. (with a db_conx.php file)

stephanstanisic
Автор

Dr. Adam, i don't know inf you are going to get my point??  Is it possible to hard code auto-loading pages like jQuery mobile.. Loading one pages without refreshing page and when you manually refresh the page it remains the same.... just the way jQuery mobile loads.... Please conduct a video on if you get solution let me know please. Am capable of auto-loading the pages but when i manually refresh the page it goes back to it's initial state....

bensosfrequents
Автор

please i am new to coding and web design and all, which of your videos do i begin with in other to get acquainted with the basic knowledge

scottyomokhodion
Автор

Is one of these safer against SQL injection than  the other?

NoahNobody
Автор

In OOP, are the words function and method interchangeable?

niallharkiss
Автор

Never truly understood PDO 'till now.

dekipet
Автор

sir can i ask for how to use mysql to create database and how to connect to the web get get data to update
because i having a school thesis title "online banking system" plssss help tnx

juplexcangs
Автор

Omg. I have been watching your videos for years. I've used xamp, mamp, wamp, lamp, and even just bought a hosting account to have access to a real online server. I have never made a mysql connection in my life. I am so hung up here. I can no longer learn any more php or evolve my web development with out using a database. I need help to defeat the gods here. I need to connect to a database. I have used a thousand examples over the years. But still no connection ever. Not once. What am I missing?

Ophiuchus
Автор

Fatal error: Uncaught exception 'PDOException' with message 'could not find driver'
That's all I get, can anyone tell me how to fix this?

RosnerParrales
Автор

i get this error

Access denied for user 'root'@'localhost' (using password: NO)

and i know im doing it right

curtturdle