PDO Crash Course (PHP)


In this video we will go over the basics of PDO (PHP Data Objects) which is a secure and consistent way to connect to a database via PHP. It is an alternative to mysqli. We will go over connection, PDO::Query and CRUD operations through prepared statements

OOP PHP MVC Udemy Course $10 Promo:

CODE: All code is in this GitHub Gist

BECOME A PATRON: Show support & get perks!






Nguồn: xemhai.org

Xem thêm bài viết khác: https://xemhai.org/game/


  1. TechGalaxy 22 May, 2020 at 08:49 Reply

    When it comes from Traversy it has to be good. Very well explained. Plz make more like these. In fact make a small project kind of tutorial like you did in html n css. Plz.

  2. Shawna Brookes 22 May, 2020 at 08:49 Reply

    If any of you get #1030 – Got error 176 “Read page with wrong checksum” from storage engine Aria try this : https://stackoverflow.com/questions/60864367/1030-got-error-176-read-page-with-wrong-checksum-from-storage-engine-aria

  3. Fraggle 22 May, 2020 at 08:49 Reply

    Thank you very much, i have been struggling with this for a while, i like your delivery and examples.

  4. Domithacus Van Thistlebloom 22 May, 2020 at 08:49 Reply

    Sorry this is just with regards to my previous question. I noticed that you use Windows. Could it be that because I am using Linux I am not seeing a .dll extension?

  5. Domithacus Van Thistlebloom 22 May, 2020 at 08:49 Reply

    Awesome to make this tutorial mate. I have watched a lot of your tutorials. I do have a question thow. I have PHP 7.2 installed and in php.ini all my extension lines e.g. extension=php_pdo_pgsql do not have .dll behind them. Is there something missing in my installation or will this still work?

  6. Sh Nam 22 May, 2020 at 08:49 Reply

    Thanks a lot. How can we handle video streaming & buffering in PHP? My second question might be funny, but can we use both php & node for the backend in a project?

  7. Chileno de corazon 22 May, 2020 at 08:49 Reply

    That voice…

    Are you from Udemy?
    The Javascript course: Modern JavaScript From The Beginning?

  8. Kemikazi __ 22 May, 2020 at 08:49 Reply

    I'm trying to do this exact thing but I keep getting the access denied error, I've checked everything possible, the credentials are right, the server and database names are right, all the privileges for the database user are granted but I keep getting the same error.

  9. Ronald K 22 May, 2020 at 08:49 Reply

    Truly awesome video! I like the approach of keeping it all in a single file for training purposes. I did run across one issue, so I'll post here just in case it helps someone… @33:01 in the video, line 65 of the code table name should be posts not POSTS (this generated error for me "Fatal error: Call to a member function execute() on boolean in…)

  10. Ali Rahemi 22 May, 2020 at 08:49 Reply

    Hey Brad! I love you man. You are fantastic. I have down with front to back series. Nowadays I am busy with your OOP MVC course from UDEMY. Thanks a bunch

  11. Vert Valiante 22 May, 2020 at 08:49 Reply

    I hope you get paid a lot for what you do. You're the reason I got hired at a local company where I do LAMP stack web development. God bless you.

  12. Xo xoo 22 May, 2020 at 08:49 Reply

    Man, you make things look easy! Thank you…

    Shortly you will learn:

    how to connect to your DB,

    learn few (up to 4) commands.

    If we assume that you know SQL, congrats, that is it

  13. José Luis Beltramone 22 May, 2020 at 08:49 Reply

    I loved and appreciated your video a lot. Excellent summary, clear explanation and straight to the point. Thank you very much!

  14. Ptmp727 22 May, 2020 at 08:49 Reply

    I dont know how to thank you enough for this. Is it possible to use this for Stored procedures? This would be easier as it gets cached,

  15. Wes Passick 22 May, 2020 at 08:49 Reply

    Hey man, your a great teacher!! Clear and easy to understand instruction. I own several of your udemy courses and love the youtube stuff too. More PHP front to Back plz.

  16. Mauricio Manrique 22 May, 2020 at 08:49 Reply

    Thanks man, really help me a lot; if you don't mind, would be great a complete PDO tutorial, for example create insert, update, delete a product with forms, including validations and best practices programming PDO. Thanks again.

  17. Osman Rasooli 22 May, 2020 at 08:49 Reply

    Thank you very much Sir. I really appreciate your teaching. Keep uploading more videos and God bless you.

  18. Ryan Stone 22 May, 2020 at 08:49 Reply

    Could you please do a tutorial of fetching items based on slected filters ir html Select or Location/Age etc. Or picture type. Using PDO, would be very helpful. if you could.. Thanks for all your tutorials so far, very useful..

Leave a reply