Saya tidak berjaya menjalankan kenyataan yang disediakan dalam PDO. Saya ingin meminta beberapa pakar untuk memberi saya nasihat.
W
W 2017-11-21 23:25:40
0
1
963

<?php

$servername = "localhost";

$username = "root";

$password = "";

$dbname = "myDBPDO";

{
          cuba                                                 conn = new PDO("mysqli:host=$servername;dbname=$dbname;",$username,$password);

//Tetapkan mod ralat PDO kepada exception


$conn->serAttribute( PDO ::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION);

                                                                                                                                                                                                                                                                                                                                  nama pertama,:nama keluarga,:e-mel)");


$stmt->bindParam(':firstname',$firstname);

$stmt->bindParam(':nama keluarga',$nama keluarga);


                                                                                                             $stmt->bindParam(':email',$email $email = "jhon@example.com";

  $); stmt->execute();

  $firstname = "Mary";


  $lastname = "Moe";

  $email = "mary                                                                                                                                                                                                                                                                                                                           le.com" ;

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 $stmt->execute(); ";

" }catch(PDOException $e){

" "

$conn= null;

W
W

愿能多结交志同道合的基友!哈哈哈。。。。。

membalas semua(1)
电动小老虎

Siarkan kod ralat atau anda tidak akan dapat membacanya. .

Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan