Welcome Guest, Not a member yet? Register   Sign In
You must use the SET method to update an entry
#1

[eluser]plasticated[/eluser]
I am creating a simple form to add data to my database. I have used the code demonstrated in the 20min blog tutorial as a basis. Everything was going great until I wrote the code that inserts the data. For some reason, I am getting an error telling me: 'You must use the SET method to update an entry'.

I have checked and double checked, and it's the same code used in the example. Eg:

Code:
function create_insert()
    {
        $this->db->insert('streams', $_POST);
        redirect('admin/create/');
    }

On the view page I have this:

Code:
<?php echo form_open('admin/create_insert');?>

<p>&lt;input type="text" name"title" /&gt;</p>
<p>&lt;input type="text" name"artist" /&gt;</p>
<p>&lt;input type="text" name"date" /&gt;</p>
<p>&lt;input type="text" name"filename" /&gt;</p>

<p>&lt;input type="submit" value="Create" /&gt;</p>

&lt;/form&gt;

Any ideas? Things were going so well up until this point! Sad


Messages In This Thread
You must use the SET method to update an entry - by El Forum - 07-11-2007, 11:23 AM
You must use the SET method to update an entry - by El Forum - 07-17-2007, 05:41 PM
You must use the SET method to update an entry - by El Forum - 09-08-2008, 07:03 PM
You must use the SET method to update an entry - by El Forum - 10-16-2008, 06:51 PM
You must use the SET method to update an entry - by El Forum - 10-16-2008, 09:00 PM
You must use the SET method to update an entry - by El Forum - 10-16-2008, 10:01 PM
You must use the SET method to update an entry - by El Forum - 04-28-2009, 05:24 AM
You must use the SET method to update an entry - by El Forum - 12-20-2009, 11:40 AM
You must use the SET method to update an entry - by El Forum - 12-20-2009, 11:44 AM
You must use the SET method to update an entry - by El Forum - 03-02-2010, 07:55 AM
You must use the SET method to update an entry - by El Forum - 11-30-2010, 02:36 AM
You must use the SET method to update an entry - by El Forum - 03-16-2011, 02:56 AM
You must use the SET method to update an entry - by El Forum - 07-27-2011, 06:16 PM



Theme © iAndrew 2016 - Forum software by © MyBB