Welcome Guest, Not a member yet? Register   Sign In
Query Builder : remove an ORDER BY clause from a query ?


is there a method to remove an ORDER BY clause to a query that has been previously added to the same query ?


I don't believe there is, unless you're willing to reset the whole query ($this->db->reset_query()). You should probably consider delaying the addition of the ORDER BY clause until you can determine whether it should be included, rather than trying to remove it later in the code.

Theme © iAndrew 2016 - Forum software by © MyBB