/    Sign up×
Community /Pin to ProfileBookmark

Hi

I was wondering if there is anyway I can make PHP read an existing formatted excel sheet and start writing data from any rows of our choice?

Please take a look into the screenshot below to see what I am talking about.

[url]http://i29.tinypic.com/j8mt7a.jpg[/url]

Many thanks

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@NogDogAug 03.2009 — If feasible, you'll probably find it much easier if you save the Excel file as a CSV file, which you can then parse via fgetcsv().

Alternatively, if running on a Windows server, you could install the ODBC Excel driver and treat the Excel file as if it were a database. (I've never done this and may be a little fuzzy on the nomenclature, but I know others have.)
Copy linkTweet thisAlerts:
@chrisranjanaAug 04.2009 — I think it is possible to read ms excel format using php.

http://code.google.com/p/php-excel-reader/ may have the php code you need.
×

Success!

Help @phantom007 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.12,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,
)...