Welcome Guest, Not a member yet? Register   Sign In
Could not delete a single image from a model!![SOLVED]
#9

[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;    
                    
             }


Messages In This Thread
Could not delete a single image from a model!![SOLVED] - by El Forum - 08-08-2008, 10:29 PM
Could not delete a single image from a model!![SOLVED] - by El Forum - 08-08-2008, 11:07 PM
Could not delete a single image from a model!![SOLVED] - by El Forum - 08-08-2008, 11:11 PM
Could not delete a single image from a model!![SOLVED] - by El Forum - 08-08-2008, 11:15 PM
Could not delete a single image from a model!![SOLVED] - by El Forum - 08-08-2008, 11:22 PM
Could not delete a single image from a model!![SOLVED] - by El Forum - 08-08-2008, 11:30 PM
Could not delete a single image from a model!![SOLVED] - by El Forum - 08-09-2008, 01:31 AM
Could not delete a single image from a model!![SOLVED] - by El Forum - 08-09-2008, 02:48 AM
Could not delete a single image from a model!![SOLVED] - by El Forum - 08-10-2008, 05:56 AM
Could not delete a single image from a model!![SOLVED] - by El Forum - 08-10-2008, 06:04 AM
Could not delete a single image from a model!![SOLVED] - by El Forum - 08-10-2008, 06:16 AM
Could not delete a single image from a model!![SOLVED] - by El Forum - 08-10-2008, 06:24 AM
Could not delete a single image from a model!![SOLVED] - by El Forum - 08-10-2008, 06:58 AM
Could not delete a single image from a model!![SOLVED] - by El Forum - 08-10-2008, 07:06 AM
Could not delete a single image from a model!![SOLVED] - by El Forum - 08-10-2008, 05:42 PM



Theme © iAndrew 2016 - Forum software by © MyBB