I am using the ->cont
command to count the return number, and for this I put a condition using ->WHERE
, but when I try to put a ||
in the condition it will look for the answer. p>
code I'm using:
$numrow1=DB::table('teste')
->where('IdDesafiante','=',15 )
->count();
As I've tried:
$numrow1=DB::table('teste')
->where('IdDesafiante','=',15) ||
->where('IdDesafiante','=',16)
->count();
Second mode:
$numrow1=DB::table('teste')
->where('IdDesafiante','=',15 ||'IdDesafiante','=',16)
->count();