INSERT problem -> unknown column... [SOLVED] |
[eluser]victor76[/eluser]
Hi, I got his blog post form in my View dir: Code: <form name="postit" action="http://localhost/codeIgniter/index.php/blog_controller/dopost" method="post"> In my Controller I have: Code: function doPost() ..And in my Model: Code: function insert_entry() When I post my form, I get the error: Quote:Error Number: 1054 ...so, as a Newbie I can see i miss some columns in my DB (_parent_name, etc), but how can I fix my code so that it just inserts 'title','comment' and 'date'? Best regards, Vic ====================== I found it allready: perhaps usefull for others... Code: function insert_entry() Is this the best way to insert data from a form, or is there a better way? Best regards, Vic
[eluser]Archiloque[/eluser]
It's a bug in CI code, see http://codeigniter.com/bug_tracker/bug/2702/ |
Welcome Guest, Not a member yet? Register Sign In |