This code is very helpful and I use it and find good results. Also, from the essay writing service reviews we found the best places that can help us to use our mind and generate code like this.
unlink image file in Codeigniter, while delete user records from the database.
Use this code:
@unlink(".$image_path".$image_value'));
For example:
<?php $image_path="/assets/upload/images/"; @unlink(".$image_path".$this->input->post('hidden_image')); ?>
or you can use image path directly in your code. Try it:
<?php @unlink("./assets/upload/images/".$this->input->post('hidden_image')); ?>
Question and answer is powered by AnsPress.io