Click here to Skip to main content
11,579,662 members (70,026 online)
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)

  Print Answers RSS
0 OriginalGriff 208
1 Frankie-C 170
2 Abhinav S 65
3 Sergey Alexandrovich Kryukov 65
4 Dave Kreskowiak 43
0 OriginalGriff 1,088
1 Sergey Alexandrovich Kryukov 750
2 Abhinav S 638
3 Suvendu Shekhar Giri 433
4 F-ES Sitecore 420


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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100