php 是否有关于如何使用 PDO 的好教程?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1943069/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-25 04:23:13  来源:igfitidea点击:

Are there good tutorials on how to use PDO?

phppdo

提问by openfrog

Maybe someone did a tutorial that shows the important thing: Setting everything up and using it with MySQL?

也许有人做了一个教程来展示重要的事情:设置一切并将其与 MySQL 一起使用?

采纳答案by Sampson

回答by zx1986

I think the article Why you Should be using PHP's PDO for Database Accessis great. It is simple, clear, and organized.

我认为文章为什么你应该使用 PHP 的 PDO 进行数据库访问很棒。它简单、清晰、有组织。

回答by Kitson

PHP.net has the best stuff. I would check out herefor an example.

PHP.net 有最好的东西。我会在这里查看一个例子。

回答by FellowCoder

Something I came across with PDO and BLOBsis that you can use that for encrypted data in MySQL. A good example of using BLOBs with encryption (so information in the database itself is encrypted) can be seen in:

我在 PDO 和BLOB 中遇到的一点是,您可以将其用于 MySQL 中的加密数据。可以在以下位置看到使用 BLOB 进行加密(因此数据库本身中的信息被加密)的一个很好的例子:

Project mySQL PDO: Step by step guide to working with a mySQL database with the PDO to help eliminate SQL injection along with using encryption.

项目 mySQL PDO:使用 PDO 使用 mySQL 数据库的分步指南,以帮助消除 SQL 注入以及使用加密