Small Question |
[eluser]Otemu[/eluser]
Hi, In CI just use: Code: $query = $this->db->query('SELECT * FROM users WHERE id IN (SELECT DISTINCT '.$coloana.' FROM '.$table.') ORDER BY username ASC'); you can pass $coloana and $table to your model checkout datatbase guide http://ellislab.com/codeigniter/user-guide/database/ |
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
|