title: Reading .csv file in php
body: <p>I want to read .csv file in PHP and put its contents into the database. I wrote the following code:</p>
  
  <pre><code>$row = 1;
  $file = fopen("qryWebsite.csv", "r");
  while (($data = fgetcsv($file, 8000, ",")) !== FALSE) {
      $num = count($data);
      $row++;
      for ($c=0; $c &lt; $num; $c++) {
          echo $data[$c] . "\n";}}
  fclose($file);
  </code></pre>
  
  <p>I do not get any error but it does not show me result.</p>