Answer the question
In order to leave comments, you need to log in
PHP and MySQL. Where we are going?
Increasingly, I began to notice that on various sites mentioning PHP functions for working with MySql, it is said that they are becoming obsolete and will soon be "removed" altogether. What is that supposed to mean? In short, the question is: where to move? What to use? What are the "new" methods now? Maybe there are smart / light / convenient / relevant new libraries?
Answer the question
In order to leave comments, you need to log in
The mysql_* functions are removed (already removed in PHP 7).
Replacements include mysqli_* functions with similar syntax, the MySQLi class, and PDO.
No one is going anywhere, just the tools for working with the database are changing (at the same time, mysqli_* is very similar to its outdated counterparts). MySQL as a database is not going anywhere.
php.net/manual/en/book.pdo.php
On top of it, their own abstractions are made, like DAO or Active Record.
Instead of PHP, it is now fashionable to use Python, and instead of MySQL - PostgreSQL.
But of course they are not outdated. This is the mysql module in PHP.
php.net/manual/ru/function.mysql-connect.php
phpfaq.ru/pdo
It is well described here. As far as I understand, its creator used to be on a toaster.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question