Is mysql_connect() usable in PHP 5.6.5

Reddi picture Reddi · Jan 28, 2015 · Viewed 29.6k times · Source

Which is the latest version PHP version, who support mysql_connect()?

I've want to upgrade my PHP version. I've read, that mysql_connect() are deprecated. In all Projects I've use the old mysql_connect(). Can I update to PHP 5.6.5 or is the command in this version removed already?

Uses somebody PHP 5.6.5 with mysql_connect()?

Problem is, that I can't change sooo much Projects in this short time and could only update to the highest version, which support mysql_connect().

Best regards and many thanks!

Answer

krzysiej picture krzysiej · Jan 28, 2015

http://php.net/manual/en/function.mysql-connect.php

5.5.0 This function will generate an E_DEPRECATED error.

don't try to use any mysql_* functions as they are deprecated and dangerous. See mysqli_ functions instead.