10-28-2016, 05:53 PM
I think this is what you're looking for
if(!empty($_POST)){
//do all your form updating here
$fields = array(
'bewerbung' => 1,
);
//The update method needs to know the table, the id it is supposed to update, and what field(s) to update
$db->update('users',$user->data()->id,$fields);
}
That should do it.
if(!empty($_POST)){
//do all your form updating here
$fields = array(
'bewerbung' => 1,
);
//The update method needs to know the table, the id it is supposed to update, and what field(s) to update
$db->update('users',$user->data()->id,$fields);
}
That should do it.