What's the difference between using mysql_ functions and pdo?



What's the difference between using mysql_ functions and pdo?..

Answer / Vaishali Vashisth

MySQLi (MySQL Improved Extension) and PDO (PHP Data Objects) are both PHP extension libraries used to interact with MySQL databases. The main difference is that PDO provides a more object-oriented interface, while MySQLi maintains the procedural style. PDO also supports other database systems besides MySQL.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

How many ways I can redirect a PHP page?

9 Answers   MicroSec, N-Tier Business Solutions, University Exams,


How do I run a php script?

1 Answers  


What is abstract class php?

1 Answers  


how to include external php file in to html page?

8 Answers   Eccentric Infotech,


What is php resource type?

1 Answers  


What are the encryption functions available in PHP?

1 Answers  


When viewing an html page in a browser, the browser often keeps this page in its cache. What can be possible advantages/disadvantages of page caching? How can you prevent caching of a certain page (please give several alternate solutions)?

1 Answers  


How is csrf token generated?

1 Answers  


How to include variables in double-quoted strings?

1 Answers  


What is abstraction php?

1 Answers  


What are the different components used in php for formatting?

1 Answers  


How can we change the maximum size of the files to be uploaded?

1 Answers  


Categories