08-12-2016, 10:19 AM
appreciate for your help!
but now i'm facing another issue, i couldn't update my database but there's no problem with insert table.
Code (update):
$fields=array('postTitle'=>$postTitle, 'postDesc'=>$postDesc, 'postCont'=>$postCont);
$db->update('blog_posts',$postID,$fields);
Code (insert):
$fields=array('postTitle'=>$postTitle, 'postDesc'=>$postDesc, 'postCont'=>$postCont);
$db->insert('blog_posts',$fields);
p.s. There's no problem with the string & variable as i've already test it.
but now i'm facing another issue, i couldn't update my database but there's no problem with insert table.
Code (update):
$fields=array('postTitle'=>$postTitle, 'postDesc'=>$postDesc, 'postCont'=>$postCont);
$db->update('blog_posts',$postID,$fields);
Code (insert):
$fields=array('postTitle'=>$postTitle, 'postDesc'=>$postDesc, 'postCont'=>$postCont);
$db->insert('blog_posts',$fields);
p.s. There's no problem with the string & variable as i've already test it.