prepare($sql_str); $stmt->bindParam(':accounttype',$accounttype); $stmt->execute(); $workers = $stmt->fetchAll(PDO::FETCH_ASSOC); $accounttype = "M"; $sql_str = "SELECT id,accountid, name FROM account WHERE accounttype = :accounttype"; $stmt = $conn->prepare($sql_str); $stmt->bindParam(':accounttype',$accounttype); $stmt->execute(); $contractpersons = $stmt->fetchAll(PDO::FETCH_ASSOC); ?>

合約入力(保養)