The `mysql_connect` function opens a connection to a MySQL server.
The mysql_connect
function opens a connection to a MySQL server. However, this function, along with all other mysql_*
functions, are deprecated in PHP 5.5.0 and should be avoided (see the red box). Consider using prepared statements with either PDO or MySQLi instead.