Try to fetch the image if it does not exist then an empty array will be returned.
Now you can use and if statement to check the returned array,
if empty insert image else update image.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )