<?php
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "myDBPDO";
try{
$conn = new PDO("mysqli:host=$servername;dbname=$dbname; ",$username,$password);
# //アウトの アウトの '‐ ‐ ‐ ‐ ‐ ‐ ‐ ‐ - $email = "jhon@example.com";
$stmt->execute ();
## $firstname = "Mary";
$lastname = "Moe";
$email = "mary@example .com";
$stmt->execute();
$firstname = "ジュリー";
$lastname = "Dooley";
$email = "julie@example.com";
$stmt->execute();
echo "エラー:<br> ". $ e->getMessage();
}
エラーコードを投稿しないと読み取れなくなります。 。