作者wubie (阿荣)
看板PHP
标题[请益]请教一下预备述句
时间Tue Mar 13 15:24:44 2007
$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)