Welcome Guest, Not a member yet? Register   Sign In
What could it be
#1

[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?
#2

[eluser]xwero[/eluser]
What is the error you get running this code?
#3

[eluser]E303[/eluser]
thats the thing i don't get an error at all. Everythign works as it should however nothig gets updated. The only error is with updateing. Adding and Deleting work fine?




Theme © iAndrew 2016 - Forum software by © MyBB