Heim  >  Fragen und Antworten  >  Hauptteil

Es ist mir nicht gelungen, die vorbereiteten Abrechnungen in PDO durchzuführen. Ich möchte einige Experten um Rat bitten.

<?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);

$email = "jhon@example.com";

  $stmt->execute();

$firstname = "Mary";

  $lastname = "Moe";

  $email = "mary.com";

                                                                                                                                                            le.com" ;

                                                                                                                                                                  $stmt->execute();                                  $stmt- >execute(); ";


" }catch(PDOException $e){

" "

$conn= null;

?>


WW2546 Tage vor955

Antworte allen(1)Ich werde antworten

  • 电动小老虎

    电动小老虎2017-11-23 23:05:09

    贴报错  代码  不然没法看。。

    Antwort
    0
  • StornierenAntwort