EllisLab text mark
Advanced Search
     
What could it be
Posted: 05 September 2007 06:24 AM   [ Ignore ]
Joined: 2007-09-04
48 posts

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:

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:

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?

 
Posted: 05 September 2007 06:53 AM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Joined: 2006-07-14
4237 posts

What is the error you get running this code?

 
Posted: 06 September 2007 12:03 AM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Joined: 2007-09-04
48 posts

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?