My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
Featured
Downloads
Wiki pages
Links

A PHP class file that will email the results of a MySQL query as a CSV file attachment. This can be done as a standalone driver file that can be run by opening it in a web browser, or run as a CRON job. The more common way to use it, is to integrate it into some other program. The source code in this PHP file is well commented and can be modified to fit your needs. The GNU GPL license gives you the room to adapt it to your project.

What it does do:

  1. Connects to a MySQL Database.
  2. Runs a MySQL query that you define.
  3. Builds a correctly formatted CSV file from the query results.
  4. Emails the CSV file as an attachment to an address you specify. Can send one or many CSV files in a single email.

What it doesn't do:

  • This code doesn't save the results to a file on the server.
  • If you are looking to save a file to the server, try Google search.

More information can be found on the Project Code Page at Studio-Owens.com

Powered by Google Project Hosting