Overclockers Australia Forums
OCAU News - Wiki - QuickLinks - Pix - Sponsors  

Go Back   Overclockers Australia Forums > Software Topics > Programming & Software Development

Notices


Sign up for a free OCAU account and this ad will go away!
Search our forums with Google:
Reply
 
Thread Tools
Old 10th April 2004, 9:35 PM   #1
matt001 Thread Starter
Member
 
Join Date: Sep 2003
Location: Brisbane QLD
Posts: 411
Default Generating Price List from MySQL Database

I am needing some help, I have a friend who has a e-commerce site, its running off a MySQL Database, what he would like is say at 2:00am in the morning it generates the price list in a Microsoft Excel Document from the MySQL Database so registered customers can download the latest price list.

Can people give me some information on how to start this and is their any good tutorials that can help me.
matt001 is offline   Reply With Quote

Join OCAU to remove this ad!
Old 10th April 2004, 9:54 PM   #2
systemdown
Member
 
systemdown's Avatar
 
Join Date: Oct 2003
Location: Brisbane 4107
Posts: 710
Default

There's some way you can do that directly from within an Excel spreadsheet, i.e. connect to a remote site and fetch some information to populate the cells with. Not sure of the specifics but I know it can be done.

But if you must have a stand-alone spreadsheet, you could conceivably just use whatever language you want (C/C++, Java, Perl etc.) and write a simple program or script that grabs the info from the mysql database using simple SQL statements and writes it to an ASCII file in .csv format (comma delimited) which can be opened by Excel. If this is all hosted on a *nix machine, just run a cron job that calls this app at 2:00am every day and places the Excel spreadsheet in a place it can be accessed by the web server that is serving the e-commerce site.

If you must generate .xls files though, I'm sure it wouldn't be too hard, there'd be info out there on how to do it, it's just a matter of knowing the ins and outs of the file format.

Anyway there's probably an easier way of achieving what you want that I don't know about, but it shouldn't be that difficult.
__________________
(F@H: Team_Bris) (Addicted to folding club member #7) (OCAU MetaL Club Member #06)
"If you join the military now, you are not defending the United States of America. You are helping certain policy makers pursue an imperial agenda." -- ex-U.S. Dept. of Defence official
systemdown is offline   Reply With Quote
Reply

Bookmarks

Sign up for a free OCAU account and this ad will go away!

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +10. The time now is 11:09 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. -
OCAU is not responsible for the content of individual messages posted by others.
Other content copyright Overclockers Australia.
OCAU is hosted by Internode!