0
$db = new mysqli('localhost','root','nere','deneme');
if ($db->error)
exit();
$stmt = $db->prepare("INSERT INTO deneme VALUES (?,?,?)");
$stmt->bind_param('ssi',$adi,$soyadi,$no);
$adi='recep';
$soyadi='saban';
$no=5;
$stmt->execute();
我得到了錯誤。php語句問題。 (mysqli)
Fatal error: Call to a member function bind_param() on a non-object in C:\wamp\www\rock\index.php on line 10
我做錯了什麼?
的var_dump($語句);在$ stmt = $ db-> prepare(「INSERT INTO deneme VALUES(?,?,?)」)之後; – Danzan 2011-05-19 10:05:56