Welcome Guest, Not a member yet? Register   Sign In
Setting
#2

Fatal error: Call to a member function result_array() on boolean in C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\companygiondaci\application\models\Mpages.php on line 198
A PHP Error was encountered
Severity: Error
Message: Call to a member function result_array() on boolean
Filename: models/Mpages.php
Line Number: 198
Backtrace:


Line 198:      return $query->result_array();


Similar error still appears:

models/Mpages.php

PHP Code:
public function add_settings()
    {
        
        
$data = array(
            
'email' => $this->input->post('email'),
            
'site_name' => $this->input->post('sitename'),
            
'meta_title' => $this->input->post('title'),
            
'meta_keyword' => $this->input->post('keyword'),
            
'meta_description' => $this->input->post('description'),
            
'facebook' => $this->input->post('facebook'),
            
'twitter' => $this->input->post('twitter'),
            
'rss' => $this->input->post('rss')            
        );
        
        
$query $this->db->replace('setting'$data);
        
//return $query->result();
        
return $query->result_array();
        
            
    } 
" If I looks more intelligence please increase my reputation."
Reply


Messages In This Thread
Setting - by davy_yg - 09-12-2016, 11:24 PM
RE: Setting - by davy_yg - 09-13-2016, 02:37 AM
RE: Setting - by ciadmin - 09-13-2016, 06:32 AM
RE: Setting - by davy_yg - 09-13-2016, 06:52 AM
RE: Setting - by wolfgang1983 - 09-13-2016, 09:05 PM
RE: Setting - by salain - 09-13-2016, 10:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB