<?php 
class Conexion{
	//Atributos de acceso
	// private $servidor = "108.167.153.151";
	// private $usuario = "creantis_proyect";
	// private $clave = "creantiscrm123";
	// private $bd ="creantis_tdm_qa";
	// private $codificacion = "utf8";

	//LOCAL
	private $servidor = "db-710vtigercrm01.czpaewiaz35o.us-east-1.rds.amazonaws.com";
	private $usuario = "creantis";
	private $clave = "maradona";
	private $bd ="720leasingtotal01";
	private $codificacion = "utf8";

	//Método para conectar
	public function Conectar(){
		//NO UTILIZAR => mysql_connect
		//¿Qué es PDO? => Clase acceso al server + BD
		
			$cn = new PDO('mysql:host='.$this->servidor . ';dbname='.$this->bd.';charset='.$this->codificacion, $this->usuario,$this->clave);
			return $cn;
	}
}

 ?>
