I am trying to write to an excel sheet using PHP..here's the code
Code: Select all
$filename ="Report.xls";
$export_file = "/home/expressi/public_html/store/admin/".$filename;
$fp=fopen($export_file,"wb");
fwrite($fp,"Productid\t");
fwrite($fp,"Product Code\t");
fwrite($fp,"Number of units in inventory\t");
fwrite($fp,"Number of units sold\t");
Now if I want to to access a particular row and col, how can I do that?
Or can u suggest any other convenient method of writing to excel sheet.
I am coding in Xcart software. So the basic code is in place and I am customizing it.