Spartan Coding
I thought it would probably be rude to post this on Coding Horror, as it is rediculously long… but here is my attempt at Spartan coding. So, the first function… changes a users information in the database: function update_User($user,$id) { if (isset($user[’deleteprofile’])) { //array(3, ‘live’, ‘Rick’ $this->db->where(’user_id’, $id); $this->db->delete(’users’); $this->db->where(’id’, $id); $this->db->delete(’ez_users’); $this->db->where(’user_id’, $id); $this->db->delete(’ez_auth’); … Read more →