• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
or_where query

#2
found the answer here (p. 320) using Query builder :
https://www.procoversfx.com/download/cod...beta.1.pdf
$db = $this->builder();
$query = $db->select('id, nom')
->where('name', $name)
->orWhere('name1', $name)
->get();
return count($query->getResult());
Reply


Messages In This Thread
or_where query - by oliver - 03-12-2020, 10:48 AM
RE: or_where query - by oliver - 03-12-2020, 01:40 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.