这是我的问题。我正在尝试bindparam
使用 tsql,但这并没有发生。
$sql="INSERT INTO `digishop`.`sell_table` (`Id`, `Time`, `GroupId`, `Amount`, `ProductId`) VALUES ('11', ':time', ':groupid', '1000', '1');";
$doer = new doer();
$doer->ping();
$result=$doer->temp->prepare($sql);
$temp=1;
$result->bindparam(':time',$temp);
$temp1=1450;
$result->bindparam(':groupid',$temp);
$doer->temp=$result;
但在数据库中:
Full texts Id Time GroupId Amount ProductId
11 0 :goroid 1000 1
请参阅 :D 我该如何解决这个问题?