• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

generate an Excel file using PHP

phpexcelweb-applications


PHP Snippet 1:

//define separator (defines columns in excel & tabs in word) 
$sep = "\t"; //tabbed character 
$fp = fopen('database.xls', "w"); 
$schema_insert = ""; 
$schema_insert_rows = ""; 
//start of printing column names as names of MySQL fields

Related Snippets

How to downgrade or install a specific version of Composer?

sort() not affecting original array while inside foreach loop

Upgrade PHP on AWS Linux

Fatal error: Uncaught mysqli_sql_exception: Unknown database 'test' in ... (How do I fix that? Using PHP)

Make survey at laravel 5.4 and MySQL

protect my blog content

how to pass row id in href of a tag in codeigniter controller?

Transpose csv file data [duplicate]

PHP: Insert marker every 3 iterations

How to display MySQL table using php and edit it in a web browser

httpd.conf on Windows: can't locate API model structure `php8_module`

Filter WooCommerce related products by Polylang language

Increase value by 1 on button click

Is it possible to re-use an array taken from PHP via JSON in a $.ajax function?

Destroy session upon refresh

About Contact Privacy policy Terms and conditions