Click here to Skip to main content
15,886,422 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
<?php
$contents="id,id1,id2\n";
$value1="Record3,
must in\n
single,
tab of excel record";
for($i=0;$i<2;$i++)
{
	$contents.="\n";
	$contents.="Record1,";
	$contents.="Record2,"
	
}
$contents = strip_tags($contents); 
header("Content-Disposition: attachment; filename=WebinfopediaDemoExcelExport".date('d-m-Y').".csv");
print $contents;
?>


input:-$value1;
output:- Record3 must in single tab of record in excel...
please help..
Posted

1 solution

 
Share this answer
 
Comments
Mister Yogesh 22-Nov-12 0:52am    
Thank you sir for above reply..
i have one another problem also which is:-
shall i add multiple style sheets in generated .csv report...
plz reply this question also
Joan M 22-Nov-12 3:55am    
No idea on how this can be done, sorry. Apart of that, it is truly completely unclear that you need that in your question. Probably you won't receive an answer on that given the question you've posted. My recommendation would be to update your other questions that seem to refer to the same issue.
PS: I've seen that you've got downvoted. Probably it is due your small explanations and to the reposting (reposting here is considered evil so try not to do it).
Good luck!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900