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

[eluser]Yash[/eluser]
lemme know any error...
Code:
function process()
    {
        $data['title'] = "DS Validator";
        $data['header'] = "DS Validator";
        $kebase = "//asecasianas2/DS_Keying/STATS/KE-DIR/";
        $qcbase = "//asecasianas2/DS_Keying/STATS/QC-DIR/";
        $ke= directory_map($kebase.$_POST["directory"], TRUE);
        $qc= directory_map($qcbase.$_POST["directory"], TRUE);
        $kelist = count($ke) - 1;
        $kelist2 = $kelist+ 1;
        $qclist = count($qc) - 1;
        $qclist2 = $qclist+ 1;
        $data['count_comp'] = strcmp($kelist2, $qclist2);
        $data['row_comp'] = strcmp($kelist,$qclist);
        
        for($x = 0; $x <= $qclist; $x++)
        {
            $ke_batch = $ke[$x];
            $qc_batch = qc[$x];
            $file1 = file($kebase.$_POST["directory"]."/".$ke_batch);
            $file2 = file($qcbase.$_POST["directory"]."/".$qc_batch]);
            $file2_count = count($file2);
            
            $count = 1;
                for($x = 0; $x <= $file2_count; $x++)
                    {
                        $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($vtag1 == 1)
                            {
                                $data['str'] = $vtag1;
                            }else{
                                $data['str']= 'level2';
                                 }
                            $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