title: Row and column border not coming in excel file using php
body: <p>I am using php and create excel file using table tag . please help me why other cell have not coming border. show screenshot for more detail .</p>
  
  <p><img src="https://i.stack.imgur.com/ZIXM9.png" alt="enter image description here"></p>
  
  <p>code is as below : </p>
  
  <p>I am using following code </p>
  
  <p>// EXPORT ANALYSIS INTO XLS FILE
      function export($t_id,$type){</p>
  
  <pre><code>    // Send the headers
      header('Content-type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
      header('Pragma: public');
      header('Cache-control: private');
      header("Content-disposition: attachment;filename=\"".getField('target_name','targets','t_id',$t_id).'_'.date('Y-m-d H:i:s',time()).".xls\"");
      header("Content-Type: application/force-download");
      header("Content-Type: application/octet-stream");
      header("Content-Type: application/download");
      header('Expires: -1');
  
      if($type == 'all'){
          $targets = $this-&gt;mdl_home-&gt;fetchAllTracedLocation($t_id,'N','ALL');
          echo '&lt;table border="1" &gt;
                &lt;tr&gt;
                 &lt;th&gt;SR No.&lt;/th&gt; 
                 &lt;th&gt;Location&lt;/th&gt; 
                 &lt;th&gt;Zip code&lt;/th&gt; 
                 &lt;th&gt;Event Type&lt;/th&gt;    
                 &lt;th&gt;Date-Time&lt;/th&gt;
                &lt;/tr&gt;';
  
              $i = 1;                
              foreach($targets as $list) { 
  
                  echo '&lt;tr&gt;';
                  echo '&lt;td&gt;'.$i.'&lt;/td&gt;';
                  echo '&lt;td&gt;'.$list['location_address'].'&lt;/td&gt;';
                  echo '&lt;td&gt;'.$list['location_zip_code'].'&lt;/td&gt;';
                  echo '&lt;td&gt;'.$list['track_type'].'&lt;/td&gt;';
                  echo '&lt;td&gt;'.date('Y-m-d H:i:s' , strtotime($list['created_date'])).'&lt;/td&gt;';                      
                  echo '&lt;/tr&gt;';
                  $i++;
              }            
              echo '&lt;/table&gt;' ;
      }
  </code></pre>
  
  <p>}</p>