PHP Classes

File: dump_data.php

Recommend this page to a friend!
  Packages of Andris Causs   SQL2CSV   dump_data.php   Download  
File: dump_data.php
Role: Example script
Content type: text/plain
Description: Example anchor target
Class: SQL2CSV
Output MySQL query in the CSV format
Author: By
Last change:
Date: 20 years ago
Size: 251 bytes
 

 

Contents

Class file image Download
<?php
    require_once 'class.sql2csv.php';
    
    $params = array(
        'host'        => 'hostname',
        'user'        => 'username',
        'password'    => 'password',
        'database'    => 'database'
    );
    $query = 'SELECT * FROM tablename';
    new SQL2CSV($params, $query);
?>