0
我只需要一个超过缺勤数量并显示消息的if语句。带警告消息的Laravel DB查询
这里的SQL查询
public function countAbsent()
{
$absent = Attendances::select(DB::raw('count(status)'))
->where('student_id', '=', Auth::user()->id)
->where('status', '=', 'absent')
->where('section_name', 'like', Input::get('section_name'))
->where('subject_code', 'like', Input::get('subject_code'))
->count();
return View::make('student.view_absent')
->with('absent', $absent);
}
那么警告信息是什么? – Killrawr