title: Compare uploaded data in database and raw CSV data
body: <p>Here is the code after I uploaded the raw file then tried to validate the raw file with the uploaded file to see if they match:</p>
  
  <pre><code>while ($db_fetch_row = sqlsrv_fetch_array($database_query)){        
      $db_eid = $db_fetch_row['eid'];
      $db_team_lead = $db_fetch_row['team_lead'];
      $db_role = $db_fetch_row['role'];
      $db_productivity = $db_fetch_row['productivity'];
      $db_quality = $db_fetch_row['quality'];
      $db_assessment = $db_fetch_row['assessment'];
      $db_staffed_hours = $db_fetch_row['staffed_hours'];
      $db_kpi_productivity = $db_fetch_row['kpi_productivity'];
      $db_kpi_quality = $db_fetch_row['kpi_quality'];
      $db_kpi_assessment = $db_fetch_row['kpi_assessment'];
      $db_kpi_staffed_hours = $db_fetch_row['kpi_staffed_hours'];     
  
      for($row = 2; $row &lt;= $lastRow; $row++) {
          $eid = $worksheet-&gt;getCell('A'.$row)-&gt;getValue();
          $team_lead = $worksheet-&gt;getCell('C'.$row)-&gt;getValue();
          $role = $worksheet-&gt;getCell('B'.$row)-&gt;getValue();                                  
          $productivity = $worksheet-&gt;getCell('D'.$row)-&gt;getValue();
          $productivity1 = chop($productivity,"%");
  
          $quality = $worksheet-&gt;getCell('E'.$row)-&gt;getValue();
          $quality1 = chop($quality,"%");         
  
          $assessment = $worksheet-&gt;getCell('F'.$row)-&gt;getValue();
          $assessment1 = chop($assessment,"%");
  
          $staffed_hours = $worksheet-&gt;getCell('G'.$row)-&gt;getValue();
          $staffed_hours1 = chop($staffed_hours,"%");
  
          $kpi_productivity =  $worksheet-&gt;getCell('H'.$row)-&gt;getValue();
          $kpi_quality =  $worksheet-&gt;getCell('I'.$row)-&gt;getValue();
          $kpi_assessment =  $worksheet-&gt;getCell('J'.$row)-&gt;getValue();
          $kpi_staffed_hours = $worksheet-&gt;getCell('K'.$row)-&gt;getValue(); 
  
          if($db_eid == $eid) {
              echo "Raw and Uploaded file Matched";
          } else {
              echo "Did not match";
          }
      }
  }
  </code></pre>
  
  <p>The output always didn't match, as you can see below:</p>
  
  <p><img src="https://i.stack.imgur.com/8L9fb.png" alt="Output"></p>