Welcome Guest, Not a member yet? Register   Sign In
OMG what is up with the documentation......
#1

[eluser]Neocrypter[/eluser]
Ok so this is the second time ive looked at the documentation use the example in there and its not doing what it says it dose.

example my current issue
Code:
$id=2;
  if (isset($id))
        {
            $query = $this->db->where('banned_user_id', $id);
            $query = $this->db->get('banned_users');
            return $query->row();
        }

that should produce SELECT * WHERE banned_user_id = '2' by my figuring, but what im getting is SELECT 2 WHERE banned_user_id = 2

and the example as take straight from the online docs
http://ellislab.com/codeigniter/user-gui...ecord.html
Code:
$this->db->where('name', $name);

// Produces: WHERE name = 'Joe'

Earlier in the doc i read that the db assumes * when when SELECT $X is not supplied

am I missing something or is the docs not accurate


Messages In This Thread
OMG what is up with the documentation...... - by El Forum - 08-13-2010, 05:21 PM
OMG what is up with the documentation...... - by El Forum - 08-13-2010, 05:32 PM
OMG what is up with the documentation...... - by El Forum - 08-13-2010, 05:35 PM
OMG what is up with the documentation...... - by El Forum - 08-13-2010, 05:41 PM
OMG what is up with the documentation...... - by El Forum - 08-13-2010, 05:53 PM
OMG what is up with the documentation...... - by El Forum - 08-13-2010, 06:18 PM
OMG what is up with the documentation...... - by El Forum - 08-13-2010, 10:20 PM
OMG what is up with the documentation...... - by El Forum - 08-14-2010, 01:39 AM
OMG what is up with the documentation...... - by El Forum - 08-14-2010, 02:32 PM
OMG what is up with the documentation...... - by El Forum - 08-14-2010, 04:34 PM



Theme © iAndrew 2016 - Forum software by © MyBB