473,406 Members | 2,281 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

How to export multiple tables into an excel file with separate sheet for each table?

Hi,

I have a database with 10 tables and I want to export all table data into excel file.But there should be only one excel file with different sheets in it, each containing different tables data.
Feb 24 '11 #1
6 6326
johny10151981
1,059 1GB
try PHPExcel

Also can export as CSV which easily can be open with excel software
Feb 24 '11 #2
Hi Johny,

Thanks for the reply.I want simple code to place in my code not the folder with files in it.I really appreciate the help
Feb 24 '11 #3
code green
1,726 Expert 1GB
If by Excel file you mean '.xls', then simple HTML tables can be written as a string, then write the string to a file and save as xls.
Feb 24 '11 #4
Hi,

Thank you.Worked on it and I a getting the .xls file with all data in to one sheet only.But I want first table data in one sheet and second table data in 2nd sheet.....all in one abc.xls file only.
Feb 24 '11 #5
code green
1,726 Expert 1GB
Then I would advise using the class johny10151981 recommended.
Or any other PHP Excel class, as I don't know of a simple solution
Feb 24 '11 #6
ok thanks for the help.will include the classes
Feb 24 '11 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Kajol | last post by:
Hi All, can u plz tell me how to import data from mysql to another database. & how to export data from anotherdata base to mysql Thanx for ur Advice Regards Kajol
3
by: Xerxes | last post by:
Hi, I would like to import the tables from MySQL database into Access database and I am not sure how to go about it. I tired to "Import External Data" from Access, selected "ODBC database" from...
1
by: csgraham74 | last post by:
Hi Guys, does anyone know how to export mysql so that i can set it up on my ISP windows server ??. i s there some sort of export command to do this ?? if there is a step by step guide on...
5
by: Sport Girl | last post by:
Hi everybody. I am new in PERL language and working in it since little hours, actually i am still a trainee and i need help please. In fact, i need a script in PERL that enables me to retrieve...
1
by: edwinparker | last post by:
Hi, I'm trying to convert a gridview to an excel report and have one small hang up. So far I've been able to create my gridview and export it to excel ok, but in my gridview I have an image. The...
1
by: Sport Girl | last post by:
Hi everybody , i have the task of developing in Perl a script that retrieves data from 3 tables ( bugs, profiles, products) from a MySQL database called bugs and display them in an excel sheet...
2
by: Nosferatum | last post by:
Hi, is it possible to export mysql data to an excel spreadsheet? By PHP and with a structured, nice layout?
1
by: DennisBetten | last post by:
First of all, I need to give some credit to Mahesh Chand for providing me with an excellent basis to export data to excel. What does this code do: As the title says, this code is capable of...
3
by: obkfixx | last post by:
hi everyone im new here.. and ive got this problem... actually im a newbie in programming so.. im gonna need every ounce of help. so here goes : i have a database in my localhost named hostel. But...
0
by: Emily F | last post by:
In the Macro section of access there is "OutputTo" action which will export a query to it's own spreadsheet in excel -What I need, is a macro (if it exists-but I think it will have to be created...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.