Welcome Guest, Not a member yet? Register   Sign In
unlink() function not worked
#1

[eluser]harris_priambudi[/eluser]
I want to delete data from database and delete image file at once in one models..
when its execute
delete data from database succes, but the image file still exist from the folder where I used to stored image file data..
there is the models code:

Code:
$location_logo="http://localhost/jobtagger_ci/file_data/logo/logo.png";
$lowongan=$this->input->post('id');

$tables = array('lowongan_data', 'lamaran_data');
$this->db->where('lowongan_id', $lowongan);
$this->db->delete($tables);
       unlink($location_logo);

im sorry for my bad english.. thanks for attention and ur help


Messages In This Thread
unlink() function not worked - by El Forum - 05-25-2012, 01:30 AM
unlink() function not worked - by El Forum - 05-25-2012, 01:53 AM
unlink() function not worked - by El Forum - 05-25-2012, 02:05 AM
unlink() function not worked - by El Forum - 05-25-2012, 02:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB