<?php

class dbconnect{
public static $mydb=null;
function databaseConnection(){

	
		
		$hostname = "realconnectmls.com";
        $username = "realconn_ciUView";
        $password = "1dhI}5=D26y0";  
        $database = "realconn_ci"; 

	   /*$database = "realconn_dev";*/
	   
		
		//$connection = mysql_connect($hostname, $username, $password) or die(mysql_error());
		$mydb = new wpdb($username,$password,$database,$hostname);
		//self::$mydb=$mydb;
		if($mydb->error){
			die("Error establishing a database connection");
		}
		return $mydb;
}

}

?>
