Jump to content

export to excel


homer.favenir

Recommended Posts

hi,

how can i make this fwrite write to another cell,

cause it only writes to a single cell only.

<?php
$err_line = 10;
$err_page1 = "page1";								
$err_page2 = "page2";
$err_type1 = "type1";
$err_type2 = "type2";
$err_name1 = "name1";				
$err_name2 = "name2";


			$fp = fopen('data.xls', 'w');
			fwrite($fp, $err_line) . "<br>";
			fwrite($fp, $err_page1);
			fwrite($fp, $err_page2);
			fwrite($fp, $err_type1);
			fwrite($fp, $err_type2);
			fwrite($fp, $err_name1);
			fwrite($fp, $err_name2);
?>

 

please help

 

thanks

Link to comment
https://forums.phpfreaks.com/topic/129726-export-to-excel/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.