Welcome Guest, Not a member yet? Register   Sign In
problem with Insert into db2.
#5

[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']);
}


Messages In This Thread
problem with Insert into db2. - by El Forum - 01-16-2009, 02:27 PM
problem with Insert into db2. - by El Forum - 01-20-2009, 02:58 AM
problem with Insert into db2. - by El Forum - 01-20-2009, 01:50 PM
problem with Insert into db2. - by El Forum - 01-20-2009, 02:50 PM
problem with Insert into db2. - by El Forum - 01-21-2009, 08:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB