prepare($sql);
$stmh->bindValue(1,$id,PDO::PARAM_STR);
$stmh->execute();
$count=$stmh->rowCount();
} catch (PDOException $Exception) {
print "오류: ".$Exception->getMessage();
}
if($count<1) {
print "검색결과가 없습니다.
";
exit;
} else {
while($row=$stmh->fetch(PDO::FETCH_ASSOC)){
$pid=$row["pid"];
$ppw=$row["ppw"];
}
}
?>