Code

Discussion on MySQL Data to Excel Export

Discussion on MySQL Data to Excel Export

Cart 40 sales

themeposh supports this item

Supported

This author's response time can be up to 1 business day.

27 comments found.

smga Purchased

Hello!

Tell me please which folders (files) should be replaced in the source code after updating the type: “Update PhpSpreadsheet library”

Thanks

Hello,

Please replace this folder “PhpSpreadsheet”. See the screenshot: https://ibb.co/dk05Ztb

Thank you so much

smga Purchased

Thank you very much, good luck in your work and creativity!

smga Purchased

Hey

Everything works fine, but there is one question: when I add a number with more than 11 characters to the database field, the final excel file shows it as 8,90371E+11 and so on.

In this case, numbers with 11 characters or less are shown correctly as 721847 and so on

It does not matter what type of field is set in the database

How can this issue be resolved? Thank you.

Hello,

You can change column format. Please see the “basic-excel.php” page.

You add Number Format Code:

use PhpOffice\PhpSpreadsheet\Style\NumberFormat;

$spreadsheet->getActiveSheet()>getStyle(‘F’.$j)>getNumberFormat()->setFormatCode(NumberFormat::FORMAT_NUMBER_COMMA_SEPARATED1);

$spreadsheet->getActiveSheet()>getStyle(‘F’.$j)>getNumberFormat()->setFormatCode(’#,##0’);

Thank you so much

smga Purchased

Hey

Thanks for the great advice, it worked!

I went a little further and used the following code to remove spaces from the output:

$spreadsheet->getActiveSheet()>getStyle(‘D’.$j)>getNumberFormat()->setFormatCode(NumberFormat::FORMAT_NUMBER);

Please give me an example file. Don’t only instruction. So i’m more easier to implement your coding. Thank you.

Please give me your email address.

Thank you so much

I’ve already bought your MySQL Data to Excel Export Laravel. How this version installs?

I am asking about installing of non-Laravel version

Hello,

Please see the documentation or documentation video.

Thank you so much

I would not ask you if I know where is documentation for MySQL Data to Excel Export (before I buy it)

I bought MySQL Data to Excel Export and when i have 1 more row in basic-exel.php i get a failare warning (->SetCellValue(‘G4’, ‘Term’);). I have a table with more rows, how ca ik fix this??

Hello,

Please give me your ftp access and site link. I will try this problem solve. My mail address tspprt7@gmail.com

Thank you so much

I found already the problem. I put one ; to many. Everything is working now.

Hello,
I am working on a WordPress directory, would like to know if your script can retrieve the number of comments every listing has?
Thank you so much.
Anna

Hello,

My script not support in WordPress.

Thank you so much

It would be nice to set date. What if I have a 15 years database and I want to pull just the last month. Can you do that with the current plugin? or is this something you can add?

Hello,

You can export 4000 rows, Please try it demo link https://www.themeposh.xyz/data_export_limit/

Thanks

I don’t think you read my message correctly. let me send it again. What if i just want to pull a week data and not 4000 rows? this feature should be avaiable. add the date range and that should do it. can you add it?

Hi…I have a problems with a row-grouping-excel script. When I have mor than 3 or 4 row for growping, the title of the group is repeated several times. The correct is that one group title for row,

Can you help me?

Hello,

I sended multiple row grouping excel script file, Please check your yahoo mail.

Thanks

igp

igp Purchased

I get this error when trying to export the basic export, even on the demo database

Fatal error: Class ‘PhpOffice\PhpSpreadsheet\Calculation\Engine\CyclicReferenceStack’ not found in /homepages/18/d43309860/htdocs/hcc-membership/cop/data/PhpSpreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Calculation.php on line 2198

Please advise

Hello,

If you want, can you give me your FTP access and your page link. I will try this problem solve. My mail address tspprt7@gmail.com

Thanks

Hello,

Please upload all files in your directory folder

Thanks

Hello,

Your problem solve. Properly not uploaded this folder ‘PhpSpreadsheet’. Please properly upload all files.

Thanks

Hi, Do you have any example that include a Chart?

No, normal excel file is export.

Hi, Can you help me to add a subtotal to each GROUP in roww grouping? I work with xampp in my desktop.

Hello,

I sended sub total excel export file, Please check your yahoo mail.

Thanks

Great, Thanks again

Hi, When I try to change the set orientation set up to LANDSCAPE, in excel not change, I have excel 2013…any advice?

the same is with the paper size..

Hello,

If you want, can you give me your FTP access and your page link. I will try this problem solve. My mail address tspprt7@gmail.com

Thanks

Hi, I sended the email, Could you check it?

Hi,

I’m running WAMP and get this error when I run the export button: Warning: ZipArchive::close(): Failure to create temporary file: No error in \wamp64\www\vasr\PhpSpreadsheet\vendor\phpoffice\phpspreadsheet\src\PhpSpreadsheet\Writer\Xlsx.php on line 398

What is causing this?

I know how to change to 777 permissions via FTP but I don’t have a paid hosted server. I run WAMP on my computer with Windows OS so the folders should not be a problem. You can’t run CHMOD on Windows since its only for linux. Is there another way to do this since it looks like your script is only built for paid servers?

Hello,

Actually, my script is working on local and web hosting with paid and unpaid both server. I want to say for testing purpose, can you install xampp with PHP version 5.6 or newer in your Windows OS? Then run my script in xampp.

Thanks

Alright so I found the issue. First issue was that my SQL query was wrong so it returned zero value which was causing the problem we discussed before. However I think you should highlight the last line of code where you set your destination folder for the files. By default it’s set to “media/” and if you don’t have that folder already it will cause another error until you either change it or create a folder with that name.

Hi, Can you help me on ROW Grouping, I want to show the SUB TOTAL to each GROUP

http://besttemplatestore.com/demo/mysql-to-excel/row-grouping.php

Thank you in Advance

Hello,

Sorry, I am give late your question answer. If you want, can you give me your FTP access. I will try this problem solve. My mail address tspprt7@gmail.com

Thanks

Best Envato Market

My MySQL Data to Excel Export does not work The design is perfect, but if I click on the Excel Export button, a white screen appears The conection with the database is good Select database works perfectly

I am waiting for your response

Greetings Embert

Hello,

Your hosting server directory folder has 777 permission.

Thanks

Yes my folder has 777 permissions , all the sub folders same If I close the conection with my database, can I open an Excel file

Hello,

For the generated excel file no need to database connection.

Thanks

Hi, is it possible to use an existing excel as template, and just add row data on using the script? thank you.

Hello, You can’t write row data in your existing excel template. Here always created new excel with your mentioned column(s).

Thanks

is there any db file size upload limit.

Hello,

Any db file size upload, It’s possible. Need to increase memory size and execution time in your server. Please, you can follow the instruction from https://stackoverflow.com/questions/4895230/why-phpexcel-does-not-allow-to-write-more-than-5000-rows

Good job!

I want to ask if I have column with images in mysql, can this tool export to excel and the images will appear in the excel file ??

Please tell me, thanx

Hello, There are allow to export only tabular data not able to export yet with image.

Thanks

Is it possible to select columns before export??

Hello,

There are allow to Export all fields from the table, No able to select partial columns from table

Hi!

We’re using this plugin for our booking: https://bizzthemes.com/plugins/woocommerce-appointments/

Can your tool take the data and export + email to the site owner each morning the appointments for that day?

So, @ 5am, he’ll get an email just before he wakes up with an Excel export of all that day’s appointments so he can download to his phone/tablet while he’s dealing with appointments through the day.

Hello, There are no automated system. It’s simple Export tool. You are able to automated adding some extra code in this tool.

Thanks

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey