<?php
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "myDBPDO";
try{
$ conn = new PDO("mysqli:host=$servername;dbname=$dbname;",$username,$password);
//Setze den PDO-Fehlermodus auf Ausnahme
$conn->serAttribute( PDO::Attr_errmode, PDO::Errmode_Exception); (::Vorname,:Nachname,:E-Mail)");
$stmt->bindParam(':Vorname',$Vorname);
$stmt->bindParam(':Nachname',$ Nachname);
$stmt->bindParam(':email',$email);
$firstname = "Mary";
" }catch(PDOException $e){
" "
$conn= null; ?>
贴报错 代码 不然没法看。。