Remove mysql_connect as it is marked as deprecated.

This commit is contained in:
Mark Crane
2015-04-15 01:43:20 +00:00
parent 50010ed5ae
commit 0fae34b81d

View File

@@ -180,10 +180,6 @@ if ($db_type == "sqlite") {
if ($db_type == "mysql") {
//database connection
try {
//required for mysql_real_escape_string
if (function_exists(mysql_connect)) {
$mysql_connection = mysql_connect($db_host, $db_username, $db_password);
}
//mysql pdo connection
if (strlen($db_host) == 0 && strlen($db_port) == 0) {
//if both host and port are empty use the unix socket