[eluser]aypnos[/eluser]
Hello, this is my first post. I'm working with CI framework just a few days, it's great and nice documented. But I have a strange problem. Here is the "bad" code, take a look:
Code:
function people_insert()
{
if($this->uri->segment(3) == 0)
{
$this->db->insert('people',$_POST);
redirect('welcome');
}
else
{
$id = $this->uri->segment(3);
$dbdata = array(
'first' => $_POST["first"];
'last' => $_POST["last"];
)
$this->db->update('people', $dbdata, "id = ".$id);
}
}
It's a function in welcome controller. When I reload my page with this code I take a blank page! When I comment the lines
Code:
$dbdata = array(
'first' => $_POST["first"];
'last' => $_POST["last"];
)
in else statement it work. Whats wrong with my array?!
Maybe I cannot see it becauce I have 2 hours now on this.
Thanks in advance!
PS. I get no error even in the log.