Welcome Guest, Not a member yet? Register   Sign In
Right Order_By (integer)
#5

[eluser]R. Oerlemans[/eluser]
[quote author="waldmeister" date="1254072715"]What are the values of your 'snelheid' column?
"3 Mb/s" or just 3?

If it's the later, then you shouldn't have that problem.
If it's the first, then you could try this:
Code:
$query_s = $this->db->group_by('snelheid')
                                            ->order_by("cast(substring_index(test, ' Mb/s', 1) as signed)", "ASC")
                                                ->get('abonnementen')
                                                    ->result_array();
[/quote]

It's just 3, wich code could i use now?


Messages In This Thread
Right Order_By (integer) - by El Forum - 09-27-2009, 06:15 AM
Right Order_By (integer) - by El Forum - 09-27-2009, 06:25 AM
Right Order_By (integer) - by El Forum - 09-27-2009, 06:31 AM
Right Order_By (integer) - by El Forum - 09-27-2009, 06:39 AM
Right Order_By (integer) - by El Forum - 09-27-2009, 06:44 AM
Right Order_By (integer) - by El Forum - 09-27-2009, 08:20 AM
Right Order_By (integer) - by El Forum - 09-27-2009, 09:31 AM
Right Order_By (integer) - by El Forum - 09-27-2009, 01:30 PM



Theme © iAndrew 2016 - Forum software by © MyBB