ello,
Could anyone kindly tell me how I should I build the brackets in my sql statement!
I have all logics [AND| OR | NOT], what they looking for and the field/column comes across from the input page then those are build into array of array! Max of 4 things they can search.
For examples:
(colour = "black" AND ( pet = "cat" OR pet ="dog))
OR this:
((pet = "fish" OR pet = "cat" OR pet ="dog) AND colour = "black")
How do I go about to have brackets in the OR first than the AND!
Any help will be mostly appreciate and feel free to email me for more details!
annalise@ntu.edu.au