Remove mysql_connect as it is marked as deprecated.
This commit is contained in:
parent
50010ed5ae
commit
0fae34b81d
|
|
@ -180,10 +180,6 @@ if ($db_type == "sqlite") {
|
||||||
if ($db_type == "mysql") {
|
if ($db_type == "mysql") {
|
||||||
//database connection
|
//database connection
|
||||||
try {
|
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
|
//mysql pdo connection
|
||||||
if (strlen($db_host) == 0 && strlen($db_port) == 0) {
|
if (strlen($db_host) == 0 && strlen($db_port) == 0) {
|
||||||
//if both host and port are empty use the unix socket
|
//if both host and port are empty use the unix socket
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue