[eluser]ELRafael[/eluser]
[quote author="JP X3M" date="1190238735"]CodeIgniter newbie here... ^__^
im having problems with the method in the video create a blog in 20 minutes...
why does the function
function comment_insert(){
$this->db->insert('comments',$_POST);
}
it wants to insert even the submit button... but naturally it will not be found on the database and so generates an error 1054
Unknown column 'Post_Comment' in 'field list'
thanks in advance.. im sorry for asking such noobish question,,, ^__^[/quote]
hum... in the video, doesn't have name (name='Post_Comment') in the submitt button. :cheese:
but, for security reason, you need to validate the post that you received. Be carefull when you use $this->db->insert('table', $_POST);