Welcome Guest, Not a member yet? Register   Sign In
Active record question
#2

[eluser]Shay Falador[/eluser]
Really simple:
Code:
$this->db->set($data, null, FALSE);

Just take a look at the method:
Code:
function set($key, $value = '', $escape = TRUE)
    {
        $key = $this->_object_to_array($key);
    
        if ( ! is_array($key))
        {
            $key = array($key => $value);
        }    

        foreach ($key as $k => $v)
        {
            if ($escape === FALSE)
            {
                $this->ar_set[$this->_protect_identifiers($k)] = $v;
            }
            else
            {
                $this->ar_set[$this->_protect_identifiers($k)] = $this->escape($v);
            }
        }
        
        return $this;
    }


Messages In This Thread
Active record question - by El Forum - 02-04-2010, 03:37 PM
Active record question - by El Forum - 02-04-2010, 04:06 PM
Active record question - by El Forum - 02-04-2010, 04:15 PM
Active record question - by El Forum - 02-04-2010, 04:18 PM
Active record question - by El Forum - 02-25-2010, 03:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB