Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: PHP
<?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 21-Nov-12 0:58am

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
Comments
Mister Yogesh at 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 Murt at 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)



Advertise | Privacy | Mobile
Web02 | 2.8.140709.1 | Last Updated 22 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid