Forum Moderators: open
$mailcode = $_GET["mailcode"];
$count=$dbo->prepare("select * from table where mysqlcode=:mailcode");
$count->bindParam(":mailcode",$mailcode,PDO::PARAM_STR,85);
if($count->execute()){
$row = $count->fetch(PDO::FETCH_LAZY);
if($row){
echo"Exists";
}else{
echo"Doesn't Exist";}
}else{
print_r($dbo->errorInfo());
}