$query="insert into employees values(?, ?, ?, ?)";
$stmt=$db->prepare($query);
$stmt->bind_param("ssss",$department,$name,$birthday,$month);
$stmt->execute();
一直錯在第三行
Call to a member function bind_param() on a non-object in c:\program files\apache group\Apache\htdocs\Birthday\insert_employee.php on line 38
我是用apache server,php5,windows系統
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 60.248.58.144
※ 編輯: wubie 來自: 60.248.58.144 (03/13 16:22)
PHP 近期熱門文章
PTT數位生活區 即時熱門文章