[eluser]buckboru[/eluser]
Yes, i suppose i am using active record.
below is my controller. I have tried using the false on my select, but my issue occurs on my insert. I tried added false to my insert also, with no effect and I don't see it as a possibility on the insert.
the error occurs in my Insert_comments function
<?php
// define blogger Controller Class
class Blogger extends Controller
{
function Blogger()
{
// load Parent controller
parent::Controller();
// load database class and connect to AS400(RGT)
$this->load->database();
// load helpers
$this->load->helper('url');
$this->load->helper('form');
}
// display all blog entries
function blogs()
{
$data['title']='My musings on the everyday goofiness of Kirby';
$data['result']=$this->db->get('tstmis.blogs');
// load blogger view
$this->load->view('blogs_view',$data);
}
// display all blog comments
function comments()
{
$data['title']= 'Blog Comments Listing';
$this->db->where('BLOG_ID',$this->uri->segment(3));
//$this->db->where('BLOG_ID',$id);
$data['result']=$this->db->get('tstmis.BLOGSCOM',false);
//load blog comments view
$this->load->view('blogs_comment_view',$data);
}
//insert new comments
function insert_comments()
{
print_r($_POST);
$this->db->insert('tstmis.blogscom',$_POST);
redirect('blogger/comments/'.$post['blog_id']);
}