Innovate faster and cut risk with PHP experts from Zend Services.
Explore Services
See How Zend Helps Leading Hosting Providers Keep Their Managed Sites on Secure PHP
Read More
Learn PHP from PHP experts with free, on-demand, and instructor led courses.
Explore Training
Submit support requests and browse self-service resources.
Explore Support
PHPCompatibility.Extensions.RemovedExtensions.mysql_DeprecatedRemoved
Use the mysqli extension:
mysqli
mysql
mysql_
MysqlToMysqli
You could also switch to PDO, but that would require more effort because the differences are more pronounced.
One of the most obvious changes is that mysql_ functions magically used the last database connection, whereas mysqli_ functions need the connection object to be explicit.
mysqli_
Increase security and cut risk by simplifying PHP application upgrades and migrations.
Long Term Support buys organizations time to migrate.