How to Connect to a Database by Using PHP PDO

preview_player
Показать описание
In this tutorial, I show you how to connect to a database by using PHP PDO.

LINKS

Files

PDO Attributes

AFFILIATE STUFF (thank you for the support!)
💰 I am an Amazon Affiliate and by using these referral links you can support this channel.

Thank you for using these links!
Рекомендации по теме
Комментарии
Автор

YOU ARE ABSOLUTELY AMAZING !
I had my database already connected, but whenever I wanted to truly understand what the code meant I found that people usually just recycles code instead of understanding what it is about.
I understood everything clearly, now I can go on with more complicated things.
Thank you so much for this video, amazingly explained!!

hilarystewart
Автор

Thank you very much! It helped me understand what each bit of code does and why it is relevant.

jra
Автор

Really enjoyed seeing this typed out with explanations as you went. Thank you!

paulrandall
Автор

Good job, this was a clear and simple explanation to get started using db-connections using PDO :)

fabiovandooren
Автор

at last ! something that really works! Thank you man

iannzioka
Автор

Thank you very much Alex, this video helped a lot !

gabrielrodriguez
Автор

.nice. Would you put the db code in a class normally or just keep it open in its own file like in your tuts and include it? thx

rw
Автор

Can anyone tell me that what exactly setAttribute does. I have this piece of code "setAttribute(PDO::ERRMODE, ERRMODE_SILENT)" and per my knowledge prevails it must return the error code whereas in actual its actually giving me the whole error. Thanks.

wajahatali
Автор

You did a great job explaining this!!! Thank you much!

mindyfelts
Автор

straight to the fucking point. Cheers mate, helped me a shit ton! thankyou!

xjonyxsimix
Автор

Thank you very much . video was really helpful

oluwatosinfalajiki
Автор

How would you implement this with html? Eg creating a html webpage but wanting to connect it to a database so it actually shows the webpage and not just “connected”

AghLetMeMakeAnACC