PDOによるデータの挿入(INSERT)
$stmt = $pdo->prepare("INSERT INTO consa_manager (name, national, assumption, created_at, updated_at) VALUES (?, ?, ?, ?, ?)"); $stmt->bindValue(1, '石崎信弘'); $stmt->bindValue(2, '日本'); $stmt->bindValue(3, '2009'); $stmt->bindValue(4, date('Y-m-d H:i:s')); $stmt->bindValue(5, date('Y-m-d H:i:s')); $stmt->execute();