class TestAction extends Action
{
public function test()
{
$admin_model = new AdminModel();
$arry = array('admin_user'=>'ssss');
$row = $admin_model->count($arry);
if($row)
{
echo "sss ".$row;
}else
{
echo "ffff".$row;
}
}
}在ThinkPHP中count() 括号中能写入条件吗? 如果能是数组格式吗? 如果没有那怎么办?
{
public function test()
{
$admin_model = new AdminModel();
$arry = array('admin_user'=>'ssss');
$row = $admin_model->count($arry);
if($row)
{
echo "sss ".$row;
}else
{
echo "ffff".$row;
}
}
}在ThinkPHP中count() 括号中能写入条件吗? 如果能是数组格式吗? 如果没有那怎么办?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货