Welcome Guest, Not a member yet? Register   Sign In
T_OBJECT_OPERATOR error with active record result (PHP 4.4.8)
#3

[eluser]Unknown[/eluser]
hello all,

I am a new here, I want to ask,
My design uses CI with PHP5 when I uploaded it to my existing hosting server error constraints:

Parse error: syntax error, Unexpected T_OBJECT_OPERATOR in / home / bitsolus / public_html / bitsolusi / application / controllers / home.php on line 43

whether this is caused by differences in the php version of it ?
or there is a solution to solve this case ?

please i need your solution ...!

home.php on line 43

function profile_list() {
//Cek role dari user
if($this->is_admin()) {
$this->load->library('pagination');
$config['base_url']=base_url().'index.php/home/profile_list/';
$this->db->where('nama_menu','profile');
$config['total_rows']=$this->db->get('menu')->num_rows(); //-----> line 43
$config['per_page']=2;
$config['num_links']=10;
$this->pagination->initialize($config);

$this->load->model('Profile_model');
$data['profiles']=$this->Profile_model->getAll($config);
$this->load->view('menu/profile_list',$data );
}else {
$this->restrict();
}
}


Messages In This Thread
T_OBJECT_OPERATOR error with active record result (PHP 4.4.8) - by El Forum - 07-05-2010, 12:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB