• 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

Whats the point of running Laravel with the command 'php artisan serve'?

What is my SQL missing?

Add record for each array elements if missing in table

Creating a config file in PHP

protect images from being copied

Coinpayments create_transaction "ERROR: Invalid command!"

Unable to Edit config.inc.php

SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'name' cannot be null

Doctrine 2 mapping referencing unique key

PHPUnit (Phar) Fatal Error Only When Test Fails

Is it possible to change the table name in the migration file-laravel

Fatal error: Array callback has to contain indices 0 and 1

Undefined Array Key error when uploading image on php

How do I do HTTP basic authentication using Guzzle?

How to install php_imagick on wamp64

About Contact Privacy policy Terms and conditions