PHP Classes
elePHPant
Icontem

File: dump_data.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes 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: 8 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);
?>