<?php require_once 'class.sql2csv.php'; $params = array( 'host' => 'hostname', 'user' => 'username', 'password' => 'password', 'database' => 'database' ); $query = 'SELECT * FROM tablename'; new SQL2CSV($params, $query); ?>
info at phpclasses dot org