Hey guys,
I have this issue where I cannot update/insert etc, I am able to view the tables, press cancel and what not however I get this error when I try to update/add.
I have put the code below along with the error I am getting.
I am using GoDaddy Hosting server, I do not have a hta access at the moment.
I am able to edit and add etc on local host, so I am not entirely sure how to solve this problem or even find the root of the problem.
Any suggestions would be great!
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
session_start();
class Reviews extends CI_Controller {
function __construct()
{
parent::__construct();
/* Standard Libraries of codeigniter are required */
$this->load->database();
$this->load->helper('url');
/* ------------------ */
$this->load->library('grocery_CRUD');
}
/*---------------Review Stuff-----------------*/
public function reviews_data()
{
$crud = new grocery_CRUD();
$crud->set_theme('datatables');
$crud->set_table('******_reviews');
$crud->set_field_upload('Image','assets/uploads/files');
$output = $crud->render();
$this->_example_output($output);
}
function _example_output($output = null)
{
$this->load->view('our_template.php',$output);
}
/*------------------End-------------------------*/
/*-------------Pages Data CMS-------------------*/
public function pages_data()
{
$this->grocery_crud->set_table('pagedata');
$this->grocery_crud->set_theme('datatables');
$output = $this->grocery_crud->render();
$this->_example_output2($output);
}
function _example_output2($output = null)
{
$this->load->view('our_template2.php',$output);
}
/*---------------End-------------------------*/
function logout()
{
$this->session->unset_userdata('logged_in');
session_destroy();
redirect('home', 'refresh');
}
}
[/URL]

