Welcome Guest, Not a member yet? Register   Sign In
Small Question
#1

[eluser]robertGM[/eluser]
I jest wanted to ask how can i transform this query in CI :

$sql="SELECT * FROM users WHERE id IN (SELECT DISTINCT $coloana FROM $table) ORDER BY username ASC";


$this->db->select()
->from('users')
->where('id' ??? )
->order_by('username ASC');


Thanks


Messages In This Thread
Small Question - by El Forum - 10-09-2013, 05:55 AM
Small Question - by El Forum - 10-09-2013, 09:25 AM
Small Question - by El Forum - 10-09-2013, 10:32 PM
Small Question - by El Forum - 10-11-2013, 05:51 AM
Small Question - by El Forum - 10-11-2013, 09:03 AM
Small Question - by El Forum - 10-13-2013, 10:56 PM
Small Question - by El Forum - 10-14-2013, 12:40 AM
Small Question - by El Forum - 10-14-2013, 03:38 AM
Small Question - by El Forum - 10-14-2013, 05:20 AM
Small Question - by El Forum - 10-15-2013, 07:12 AM
Small Question - by El Forum - 10-15-2013, 10:39 PM
Small Question - by El Forum - 10-16-2013, 12:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB