PHP output excel file example code
- header("Content-type:application/vnd.ms-excel") ;
- header("Content-Disposition:attachment;filename=users.xls" );
- echo "Company name"." ";
- echo "Username" ." ";
- echo "Password"." ";
";
- foreach($result[result] as $val){
- echo "$val->ComName"."; >UserName"." ";
- echo "$val->UserTruePw"." ";
- echo emptyempty($val->DoMainName)?:(http:// .$val->DoMainName..jiaomai.com)." ";
- echo "
";
- }
- ?>
-
-
-
-
http://www.bkjia.com/PHPjc/486142.html
www.bkjia.com
true
http: //www.bkjia.com/PHPjc/486142.htmlTechArticlePHP output excel file example code?php header("Content-type:application/vnd.ms-excel") ; header("Content-Disposition:attachment;filename=users.xls" ); echo "Company name".""; echo "Use...