title: Export Data in excel and then import from excel using PHP. DB is MySQL
body: <p>--I have some rows from my table which I would like to export in excel format. This step is equivalent to the user enters the search criteria and all matching rows will be exported in an excel file.</p>
  
  <p>--The user makes changes to the excel file. Add or update rows.</p>
  
  <p>--The user upload the file and all updated rows gets updated in the database and all added rows gets added in the database.</p>
  
  <p>All this I want to do in PHP and the database it is using is MySQL. Servers are running Linux (no COM!)</p>
  
  <p>I have exporting and importing part I explained above done seperately.</p>
  
  <p>I am using <a href="http://code.google.com/p/php-excel-reader/" rel="nofollow">PHPExcelReader</a> to read the file and save it. But that requires the user to download the template first, copy data from exported excel and paste it in the template.</p>
  
  <p>For exporting, I am just creating a simple HTML table and fool the browser, its an excel! 
  Excel will open HTML table but ofcourse while saving that file, it will change the format and make it valid excel file.</p>
  
  <p>Please throw some ideas on how can I make it work? :/</p>
  
  <p>Thank you ... I greatly appreciate your help.</p>