0
我有以下SQL函数,并且我已经放弃了mysqli_stmt_bind_result中的$行。SQL中始终为NULL返回值
//get the user number per month
public function chartwaitinguservsproduct(){
$stmt = mysqli_prepare($this->connection,
"select
(Select COUNT(*) from reusematching.waitinglist_product) as COUNTP,
(Select COUNT(*) from reusematching.waitinglist_user) as COUNTU;
");
$this->throwExceptionOnError();
mysqli_stmt_execute($stmt);
$this->throwExceptionOnError();
mysqli_stmt_fetch($stmt);
mysqli_stmt_bind_result($stmt, $row->COUNTP, $row->COUNTU);
mysqli_stmt_free_result($stmt);
mysqli_close($this->connection);
return $rows;
}
但无论我如何更改数据库,$ rows始终为NULL。 为什么?由于读取声明?
是的,你是对的我愚蠢。 '='' – Samuel
@ user1660416,不愚蠢,_永不笨。我们活着,我们学习:-) – paxdiablo
我正在关注flex示例代码。但错过了最重要的部分。 – Samuel