$this->db->orderby ? |
[eluser]Christopher Blankenship[/eluser]
outtolunch truly there is no solution to your question.... SQL's ORDER BY does not work the way you are intending suggestion to look at the following : http://www.sql-tutorial.com/sql-order-by-sql-tutorial/ You are treating order by like a where clause. The only way to do what you are wanting is to separate the queries to return 1 query with those equal to brent then a second query to return those that are not equal to brent then merge the two returns together and return the result. This is one way of doing it. 1. create a null array as a placeholder. 2. query 1. 3. query 2. 4. foreach result in query 1 add to the placeholder. 5. foreach result in query 2 add to the placeholder. 6. return placeholder. |
Messages In This Thread |
$this->db->orderby ? - by El Forum - 03-09-2010, 06:03 AM
$this->db->orderby ? - by El Forum - 03-09-2010, 07:13 AM
$this->db->orderby ? - by El Forum - 03-09-2010, 07:17 AM
$this->db->orderby ? - by El Forum - 03-09-2010, 07:22 AM
$this->db->orderby ? - by El Forum - 03-09-2010, 10:05 AM
$this->db->orderby ? - by El Forum - 03-09-2010, 12:50 PM
$this->db->orderby ? - by El Forum - 03-09-2010, 01:05 PM
$this->db->orderby ? - by El Forum - 03-09-2010, 02:50 PM
$this->db->orderby ? - by El Forum - 03-09-2010, 03:14 PM
$this->db->orderby ? - by El Forum - 03-09-2010, 03:48 PM
$this->db->orderby ? - by El Forum - 03-09-2010, 05:36 PM
$this->db->orderby ? - by El Forum - 03-09-2010, 07:52 PM
|