문제

I am counting how many rows there are in a database that match two conditions

$rows = Jelly::select('brief')->where('creator_id', '=', $this->view->user->id, 'and', 'name', '=', $name)->count();

I have done this before a long time ago and have forgotten how. I was wondering if this is the correct way of doing it.

I just can't seem to find my answer through Google.

도움이 되었습니까?

해결책

$rows = Jelly::select('brief')->where('creator_id', '=', $this->view->user->id )->where('name', '=', $name)->count();
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top