• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Group LIKE in CI

#1
[eluser]dchankhour[/eluser]
Hi,

I'm looking to group LIKE using CI sytax.

For example, i would like to generate the following query:

select * from table where (c1 = 0 and c2 = 1) AND (c3 LIKE %test% or c4 LIKE %test)

It seems that CI will always do OR or AND and there is no way of grouping.

Any help is appreciated.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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