Welcome Guest, Not a member yet? Register   Sign In
Select AND / OR problem
#6

[eluser]Khoa[/eluser]
I also found that the missing of brackets cause many confusion and also makes us not feel confident about the sql statement that CI generates. I used to do a lot of sql statement writing on my own, and some of them are very very complicated. Manually writing is tedious but it helps me ensure that I put AND, OR and brackets in exactly where I want them to be.

I think there should be a function like: $this->db->openBracket() and $this->db->closeBracket() to allow user to insert them wherever they want.

xwero, your method is a way to work around this, but by doing so, I think we cannot make use of the escaping feature that CI provides (well, to be honest, I dont really know what CI does, but feel more confident whey it says it does :-D). Am i right?


Messages In This Thread
Select AND / OR problem - by El Forum - 06-09-2008, 12:29 AM
Select AND / OR problem - by El Forum - 06-09-2008, 12:43 AM
Select AND / OR problem - by El Forum - 06-09-2008, 01:24 AM
Select AND / OR problem - by El Forum - 06-09-2008, 01:41 AM
Select AND / OR problem - by El Forum - 06-11-2008, 01:34 AM
Select AND / OR problem - by El Forum - 08-29-2008, 12:08 AM
Select AND / OR problem - by El Forum - 08-29-2008, 01:01 AM
Select AND / OR problem - by El Forum - 08-29-2008, 01:33 AM
Select AND / OR problem - by El Forum - 08-29-2008, 01:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB