"; } else { require_once("../lib/mydb.php"); $pdo = db_connect(); try{ $sql = "select * from chandj.member where nick = ? "; $stmh = $pdo->prepare($sql); $stmh->bindValue(1,$nick,PDO::PARAM_STR); $stmh->execute(); $count = $stmh->rowCount(); } catch (PDOException $Exception) { print "오류: ".$Exception->getMessage(); } if($count<1){ print "사용가능한 닉네임입니다.
";
} else
{
print "닉네임이 중복됩니다.
다른 닉네임을 사용해 주세요.
"; } } print "