[eluser]Narkboy[/eluser]
Ok - so you want to remove an image, and then reuse the same id?
So - delete image id 8, then be redirected to the upload page so that you can upload a new image with id 8?
It's do-able, but the big question is why would you?
If you store images in the database, then you can manually specify the id field:
Code:
$insert = array(
'image_id' => '8',
'image_filename' => 'file.jpg'
};
$this->db->insert('table_name',$insert);
I assume that the field for id's in the db is autoinc? In which case, you shouldn't get an error if you specify the id.
However, I don't see a reason why you would need or want to. You'd require two insert functions - one for specifying the id, and one for when you don't want to specify.
Why not just allow the database to sort the ids for you?
/B