473,602 Members | 2,811 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

4 New Member
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 6358
johny10151981
1,059 Top Contributor
try PHPExcel

Also can export as CSV which easily can be open with excel software
Feb 24 '11 #2
srikanya
4 New Member
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 Recognized Expert Top Contributor
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
srikanya
4 New Member
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 Recognized Expert Top Contributor
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
srikanya
4 New Member
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
3296
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
4910
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 file type dropdown, selected "New data source" and picked SQL Server from the list. I specified the server name (mydomain.com) along with user id and password. But when I clicked on "Next", I got: "connection failed: SQL Server Error:10060,...
1
1504
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 how to do this could someone please point me towards it.
5
6155
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 data from a table from the database in MySQL and write its contents in an excel sheet file as an excel repot. I have done a script but it is still in draft cause it's not working. Can somebody help me please.
1
3360
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 problem is, the image won't display unless I'm connected to the Internet or if I use a relative path and have the image stored relative to the excel file. Is it possible to "embed" the image from the gridview into the excel workbook so I could give...
1
3035
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 report. I always get when trying to test it " 500 Internal Server Error - The server encountered an internal error or misconfiguration and was unable to complete your request." Can somebody help me please.
2
4314
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
6677
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 extracting all tables and it's data from any given database! I was searching the net for a program like this, but I didn't come accross any (free) versions. So I decided to write it myself. To get this code to work, you need to add a reference to...
3
4907
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 our instructor says to put that database or provide a copy of that database to the server. how do i dump a db on a navicat then put it on the server??? I am a computer science student.... help me! please...
0
1414
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 using VBA Code?)that will export several queries to an existing excel spreadsheet to their own individual tabs within that spreadsheet - its basically like going to each query I have and right clicking, choosing export then choosing where to export...
0
7993
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7920
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8404
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8054
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5440
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3900
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2418
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1510
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1254
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.