Welcome Guest, Not a member yet? Register   Sign In
Query problem in Active Record Class
#1

[eluser]Unknown[/eluser]
Hi,

How can I make separation in query parts???

I like to have this :

SELECT * FROM (`boxes`) WHERE `color` IN ('1')
AND ( `name` LIKE '%white%' OR `short` LIKE '%white%')


With Active Record Class I can't separate the likes from the where parameter, I could do this with Igniter:

SELECT * FROM (`boxes`) WHERE `color` IN ('1') AND `name` LIKE '%white%' OR `short` LIKE '%white%'

Is there any solution for this?

Thanks,
Chris


Messages In This Thread
Query problem in Active Record Class - by El Forum - 07-29-2011, 02:45 PM
Query problem in Active Record Class - by El Forum - 07-29-2011, 03:16 PM
Query problem in Active Record Class - by El Forum - 08-05-2011, 01:38 PM
Query problem in Active Record Class - by El Forum - 08-05-2011, 04:22 PM



Theme © iAndrew 2016 - Forum software by © MyBB