0

PHP mySQL databases

I read about PHP being capable of supporting mySQL functions via method such as mysql_connect(), mysql_query(), mysql_fetch_array() and etc. I know mySQL is an open source rdbms. Is it possible that the PHP can support all types of rdbms-based databases, or are there exceptions?. My own readings lead me to believe that it can support mariaDB and perhaps Oracle. Any chance that anyone here can help point out databases that are unsupported by the PHP methods, or is there none?

31st Mar 2020, 10:47 AM
Derrick
Derrick - avatar
1 Answer
+ 1
mysql interface is deprecated, look into mysqli or PDO interface. The following link introduces PDO pretty well. PDO supports multiple DBMS, mysqli is the optimized choice for MySQL. https://phpro.org/tutorials/Introduction-to-PHP-PDO.html
31st Mar 2020, 11:48 AM
Ipang