[#] hm X_Shell Backd00r [#]
<?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