Welcome Guest, Not a member yet? Register   Sign In
novice for variables questions
#3

[eluser]syntaxerror[/eluser]
thanks,
but there is an error
Code:
Severity: Notice

Message: Undefined variable: file1

Filename: controllers/front_cont.php

Line Number: 44
BTW my whole function is this
Code:
function process()
    {
        $data['title'] = "DS Validator";
        $data['header'] = "DS Validator";
        $data['kebase'] = "//asecasianas2/DS_Keying/STATS/KE-DIR/";
        $data['qcbase'] = "//asecasianas2/DS_Keying/STATS/QC-DIR/";
        $data['ke']= directory_map($data['kebase'].$_POST["directory"], TRUE);
        $data['qc']= directory_map($data['qcbase'].$_POST["directory"], TRUE);
        $data['kelist'] = count($data['ke']) - 1;
        $data['kelist2'] = $data['kelist']+ 1;
        $data['qclist'] = count($data['qc']) - 1;
        $data['qclist2'] = $data['qclist']+ 1;
        $data['count_comp'] = strcmp($data['kelist2'], $data['qclist2']);
        $data['row_comp'] = strcmp($data['kelist'],$data['qclist']);
        for($x = 0; $x <= $data['qclist']; $x++)
        {
            $data['ke_batch'] = $data['ke'][$x];
            $data['qc_batch'] = $data['qc'][$x];
            $data['file1'] = file($data['kebase'].$_POST["directory"]."/".$data['ke_batch']);
            $data['file2'] = file($data['qcbase'].$_POST["directory"]."/".$data['qc_batch']);
            $data['file2_count'] = count($data['file2']);
            $data['count'] = 1;
                for($x = 0; $x <= $data['file2_count']; $x++)
                    {
                        $data['vtag1'] = substr($file1[$x],178,1);
                        $data['vtag2'] = substr($file2[$x],178,1);
                        $data['name1'] = substr($file1[$x],7,78);
                        $data['name2'] = substr($file2[$x],7,78);
                            if($data['vtag1'] == 1)
                            {
                                $data['str'] = $data['vtag1'];
                            }else{
                                $data['str']= 'level2';
                                 }
                            $data['count']++;
                    
                    }
                    $this->load->view('process', $data);
        }


Messages In This Thread
novice for variables questions - by El Forum - 10-10-2008, 01:12 AM
novice for variables questions - by El Forum - 10-10-2008, 02:11 AM
novice for variables questions - by El Forum - 10-10-2008, 02:15 AM
novice for variables questions - by El Forum - 10-10-2008, 02:16 AM
novice for variables questions - by El Forum - 10-10-2008, 02:19 AM
novice for variables questions - by El Forum - 10-10-2008, 02:27 AM
novice for variables questions - by El Forum - 10-10-2008, 02:32 AM
novice for variables questions - by El Forum - 10-10-2008, 03:27 AM
novice for variables questions - by El Forum - 10-10-2008, 03:32 AM
novice for variables questions - by El Forum - 10-10-2008, 03:55 AM
novice for variables questions - by El Forum - 10-10-2008, 04:02 AM
novice for variables questions - by El Forum - 10-10-2008, 05:00 AM
novice for variables questions - by El Forum - 10-10-2008, 05:09 AM



Theme © iAndrew 2016 - Forum software by © MyBB