
prepare($sql);
$stmh->bindValue(1,$num,PDO::PARAM_STR);
$stmh->execute();
$count = $stmh->rowCount();
if($count<1){
print "검색결과가 없습니다.
";
}else{
$row = $stmh->fetch(PDO::FETCH_ASSOC);
$item_subject = $row["subject"];
$item_content = $row["content"];
$item_file_0 = $row["file_name_0"];
$item_file_1 = $row["file_name_1"];
$item_file_2 = $row["file_name_2"];
$copied_file_0 = $row["file_copied_0"];
$copied_file_1 = $row["file_copied_1"];
$copied_file_2 = $row["file_copied_2"];
}
}catch (PDOException $Exception) {
print "오류: ".$Exception->getMessage();
}
}
?>
