[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><input type="text" name"title" /></p>
<p><input type="text" name"artist" /></p>
<p><input type="text" name"date" /></p>
<p><input type="text" name"filename" /></p>
<p><input type="submit" value="Create" /></p>
</form>
Any ideas? Things were going so well up until this point!