Innovate faster and cut risk with PHP experts from Zend Services.
Beginning to advanced PHP classes to learn and earn global certification.
Help me choose >
Submit support requests and browse self-service resources.
Use the mysqli extension:
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.
Increase security and cut risk by simplifying PHP application upgrades and migrations.
Long Term Support buys organizations time to migrate.