Click here to get back home

MySQL -> PHP -> MS Excel?

 HomeNewsGroups | Search

comp.lang.php - PHP programming language discussions 

get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
MySQL -> PHP -> MS Excel? me 11-25-2008
Posted by Jerry Stuckle on November 26, 2008, 11:28 pm
Please log in for more thread options
sheldonlg wrote:
show/hide quoted text

Which completely depends on the client's settings. It may or may not
perform the same as on your system.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Posted by NC on November 26, 2008, 9:04 am
Please log in for more thread options
show/hide quoted text

Why bother? If you declare your MySQL database as an ODBC source,
you should be able to query it from Excel directly...

Cheers,
NC

Posted by trookat on November 26, 2008, 7:43 pm
Please log in for more thread options
me wrote:
show/hide quoted text

I personally don't have a problem with ANY of the suggests made in these
threads , all valid .

The original poster wants a method to export mysql data to xls format
in a file so his boss can just double click it and it opens no issue.

If you have scoured the internet , googled your brains out regrading xls
and php you have probably discovered that there is no practical solution
show/hide quoted text
before. There are classes around but none did much more then spew out a
file that then needs to be converted in excel when opened.( causing the
good old conversion window up)

Now the original poster never mentions what version of excel he has to
play with , Excel 2007 uses a new xml type of file format , php is more
equipped to handle that

i would suggest you google :php excel

the first two results
http://www.codeplex.com/PHPExcel
http://code.google.com/p/php-excel/

both these projects deal with the xml file version of excel
try these
** DISCLAIMER : I have not tested these so it is unknown if they will
work for you.

If that is not good for you ,then perhaps you need to look at a
different platform.

I hate myself for even thinking this, think about using C# or some-other
Microsoft programming languages they can connect to a mysql db and its
more likely that they will be able to export to .xls natively ( no
guarantee as I'm not a windows programmer)

I suggest if you can find a excel newsgroup/forum they may have a better
solution. I'm sure this problem is common and people have solutions for
you somewhere.

regards trookat

Posted by r0g on November 27, 2008, 2:11 am
Please log in for more thread options
trookat wrote:
show/hide quoted text

show/hide quoted text


Yikes, no need to join the dark side! Both Perl and Python are pretty
handy with the ole XLS format too...

http://pypi.python.org/pypi/xlwt

http://homepage.eircom.net/~jmcnamara/perl/WriteExcel.html

There are ways of using both Perl and Python from PHP so you needn't
switch platforms to use them.

Best regards,


Roger.

Posted by trookat on November 27, 2008, 3:33 am
Please log in for more thread options
r0g wrote:
show/hide quoted text

I agree that I may have slightly dipped my toes into the forces of evil
by suggesting a MS product, however one can only recommend what one knows.

To be honest I gave up using perl about when php 3 was released so I
keep forgetting that it may be option. Thats what happens when you get
old and lazy lol


--trookat











( Although ,I'm only 31 so I'm not THAT old, having a disability makes
you age , it also gives me start posting in newsgroups and pretending
I'm doing something useful with my time, like making a wiki system that
I could have just downloaded ..... sorry bout that some monkey must have
got the peanuts out and ran round my head .... I now return you to your
regular television programming.

Similar ThreadsPosted
Excel to MySQL through PHP? April 1, 2006, 4:27 pm
MySQL as Excel? February 3, 2009, 6:50 pm
Export mysql data to excel? March 10, 2008, 6:03 am
Exporting MySQL Data to Excel using PHP January 5, 2009, 10:18 am
Import Excel file into MySQL database September 3, 2004, 2:27 am
Reading Excel to MySql or Comma delimited ... June 14, 2006, 6:44 pm
PHP (mysql) to Excel, Word and PDF and other report formats May 2, 2009, 4:52 am
PHP / MySQL to Excel - good library recommendation? May 18, 2009, 7:24 am
uploading special characters from excel to mysql and php binary/Image June 17, 2008, 10:47 am
PHP COM Excel Obj May 31, 2006, 7:06 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Driving a better car - Fuelzilla.com

Cabling site for homeowners and pros alike - Cabling-Design.com

Friends:

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap
Privacy Policy