使用梅杜 PHP数据库框架,并尝试使用
$count = $db->count(
'tournaments',
[
'is_season' => '0',
'status' => '9'
]
);
echo $count;在第816行的非对象上调用一个成员函数fetchColumn()。删除“is_season”或“status”将使查询计数工作。
我做错了什么?还是框架坏了?
发布于 2014-07-14 09:10:48
试一试,这可能管用
$count = $db->count(
'tournaments',
[ "AND" =>
['is_season' => '0',
'status' => '9'
]
]
);
echo $count;检查手册
https://stackoverflow.com/questions/24733026
复制相似问题