[eluser]E303[/eluser]
I have been developing this application on an apache/mysql/php installation on my vista laptop.
Anyway finally I uploaded it to my hosting space and sorted out all the little problem however there is a problem with the updateing of a database.
What worked perfectly before now dosen't seem to do anything.
The Model:
Code:
function Pages_update()
{
$data = array(
'title' => $_POST['title'],
'meta_title' => $_POST['meta_title'],
'meta_keywords' => $_POST['meta_keywords'],
'meta_description' => $_POST['meta_description'],
'internal' => $_POST['subpage'],
'body' => $_POST['body'],
'navTitle' => $_POST['navtitle']
);
$this->db->where('id', $_POST['page_id']);
$this->db->update('pages', $data);
}
The Controller:
Code:
function Pages_update()
{
$this->load->model('admin/Admin_Model');
$this->load->model('Admin_Model');
$this->Admin_Model->Pages_update();
$data['query'] = $this->Admin_Model->Flakes_navigation();
$this->load->view('admin/main_admin_view', $data);
}
Is there anything that I am missing?