I want to know when and where do we use PDO besides simple mysql_connect methods?
Is this PDO faster? What are the advantages over other methods?
Security: The most useful thing with PDOs are prepared statements. Using them to write code that can be SQL Injected is much more difficult .; -)
Error Handling: On the other hand, error handling is much better, since you can switch to Exceptions rather than false FATALs ERRORS, etc.
: mysql_ mysql. , - antoher . MySQL, , .
PDO PHP . PDO - PHP, JDBC Java. , , .
, mysqli , PDO (, , ..), , mysqli PDO.
Source: https://habr.com/ru/post/1716499/More articles:Generics in Boo - Is there a C # where clause equivalent - genericsGet data from sql data source to asp.net controls - c #when is it better to use a c ++ template? - c ++How to get Flex Builder 3 to create two assemblies: one "-use-network = true", the other "-use-network = false"? - build-processМодульное тестирование Flex/Flash-библиотек в FlashBuilder - flexEmbed Word spellcheck in a Windows Form application - c #catch (QuotaExceededException ex) and get something useful? - c #Почему родительский объект не сбой с ранее установленным дочерним объектом? - .netHow to distinguish between a web application or a standalone application.? - javaAny good tips for a PHP programmer starting a GWT project? - javaAll Articles