Welcome Guest, Not a member yet? Register   Sign In
Disable Safe Query For Order_By
#2

There is a third parameter, that disables escaping so you can use complex expressions for sorting, you can set it to FALSE to disable escaping.

PHP Code:
    /**
     * ORDER BY
     *
     * @param    string    $orderby
     * @param    string    $direction    ASC, DESC or RANDOM
     * @param    bool    $escape
     * @return    CI_DB_query_builder
     */
    
public function order_by($orderby$direction ''$escape NULL
Reply


Messages In This Thread
Disable Safe Query For Order_By - by mertdogan - 02-28-2015, 09:25 AM
RE: Disable Safe Query For Order_By - by pporlan - 02-28-2015, 09:52 AM
RE: Disable Safe Query For Order_By - by Narf - 02-28-2015, 10:31 AM
RE: Disable Safe Query For Order_By - by Rufnex - 02-28-2015, 10:32 AM
RE: Disable Safe Query For Order_By - by Narf - 02-28-2015, 06:09 PM



Theme © iAndrew 2016 - Forum software by © MyBB