D
D
Dmitry2014-03-28 13:54:25
PHP
Dmitry, 2014-03-28 13:54:25

Appending in Excel PHP?

Hello!
The question is, there is an excel file with data, how to implement adding data to the current sheet from another excel file using the phptoexcel library?
At this stage, I made the implementation of adding data to the next sheet.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
tushev, 2014-03-28
@tushev

Well, you read the excel file into memory using phptoexcel. See which line the data ends on. And after this line add new data. Then save the file. What is the difficulty?
But I would rather store the data in the database. And the addition of the data would do in a DB. And then I would make a selection from this database and form a new excel file from scratch. There will be less rake with all sorts of locks and structures of excel files.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question