PHP Classes

Mysql data to xls using PDO

Recommend this page to a friend!

      Top level forums  >  PHP Specialists  >  General  >  Mysql data to xls using PDO  
Subject:Mysql data to xls using PDO
Summary:Trying to create a class that converts mysql table data to a xls
Messages:2
Author:mem
Date:2009-10-09 01:40:46
Update:2009-10-09 11:54:06
 

  1. Mysql data to xls using PDO   Reply   Report abuse  
Picture of mem mem - 2009-10-09 02:05:27
Hello all,

I'm really stuck here, and I'm getting no replies, because, probably, this question doesn't make much sense. However, if it doesn't, please let me know as well.

I'm able to store some data on a xls file. However:

1) I get them all on the first cell of a xls sheet, instead of being spread over the cells.

2) I'm unable to get the column names.


I know that normally, we see the use of mysql_num_rows and mysql_num_fields, but, in this case, I was trying to use pdo.

Here is an example:
pastebin.com/m69d5c71e


Can I have your help please?



If I'm not on the right track, please, advice...


Kind Regards,
Márcio


There is 1 reply in this thread, which is not being displayed.
Browsing this forum thread replies is available only to premium subscribers.


Go to the premium subscriptions page to learn how to become a premium subscriber and have full access to this forum.