diff --git a/html/inc/db_conn.inc b/html/inc/db_conn.inc
index a3a035cb78..7f32489e99 100644
--- a/html/inc/db_conn.inc
+++ b/html/inc/db_conn.inc
@@ -35,7 +35,11 @@ class DbConn {
function init_conn($user, $passwd, $host, $name) {
if (MYSQLI) {
- $this->db_conn = new mysqli("p:".$host, $user, $passwd);
+ if (version_compare(PHP_VERSION, '5.3.0') < 0) {
+ $this->db_conn = new mysqli($host, $user, $passwd);
+ } else {
+ $this->db_conn = new mysqli("p:".$host, $user, $passwd);
+ }
} else {
$this->db_conn = mysql_pconnect($host, $user, $passwd);
}