[eluser]FREEZA[/eluser]
Hey community,
here is my code for including my post data in two tables:
Model:
Code:
function insert(){
$this->db->set('datum', date("Y-m-d H:i:s"));
$this->db->set('uid', $this->input->post('uid'));
$this->db->set('headline', $this->input->post('betreff'));
$this->db->set('content' , $this->input->post('content'));
$this->db->insert('entry');
$this->db->set('uid', $this->input->post('uid'));
$this->db->set('name', $this->input->post('name'));
$this->db->set('picture', $this->input->post('picture'));
$this->db->insert('user');
return TRUE;
}
How could i write it shorter?