Welcome Guest, Not a member yet? Register   Sign In
[Active Record] Selecting data problem
#2

[eluser]Armchair Samurai[/eluser]
This should work but hasn't been tested:
Code:
$sql = '(SELECT child FROM category_relations)';

$this->db->select('id');
$this->db->where('categories.id NOT IN', $sql, FALSE);
$query = $this->db->get('categories');


Messages In This Thread
[Active Record] Selecting data problem - by El Forum - 01-18-2009, 01:38 AM
[Active Record] Selecting data problem - by El Forum - 01-18-2009, 02:36 AM
[Active Record] Selecting data problem - by El Forum - 01-18-2009, 04:23 AM
[Active Record] Selecting data problem - by El Forum - 01-24-2009, 01:20 PM
[Active Record] Selecting data problem - by El Forum - 01-24-2009, 09:35 PM



Theme © iAndrew 2016 - Forum software by © MyBB