[eluser]Mizanur Islam Laskar[/eluser]
Hello Too Pixel, I tried to use your code, but didn't work yet. My final partial model is:
Code:
function delete_data($record_id)
{
$del_flag = 0;
$this->db->delete('projukti_committee', array('record_id' => $record_id));
if( mysql_affected_rows() > 0 )
{
$query = $this->db->getwhere('projukti_committee',array('record_id' => $record_id));
$row = $query->row();
$picture .= $row->picture;
@unlink(realpath('assets/photo').'/'.$picture);
$del_flag ++;
}
return $del_flag;
}