Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

PHP, MYSQL, INTERACTIVE EXCEL

Guest
May 30, 2010 May 30, 2010

Hello,

Im looking to give an end user the ablity to upload an excel document by some sort of browse/add file button in order to change content on a page.  Basically on a weekly basis the user will upload an excel document with the weeks scores and replace the older version.  Everything I see points me to sharepoint or other programs.  This should be something simple? Everything else in the site runs on PHP and MYSQL but need this weekly upload directly from end user browser.

Thank you.

TOPICS
Server side applications
649
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 30, 2010 May 30, 2010

>This should be something simple?

Simple? No.  Using Excel as a live datasource is not a good idea. What you would need is something that would process the uploaded files, validate the data, and insert into your database. If you are adept at scripting, this is doable.

Is it not possible to have the end users update a form instead of uploading a file?

There a few other possibilities.For example, if your users can export the file as xml it seems pretty straightforward to use a process like this:

http://www.ibm.com/developerworks/opensource/library/os-phpexcel/index.html

How many users will upload? How many total active files will there be at a single time?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 31, 2010 May 31, 2010

Why do they have to upload the .xls file?

Since they are using Excel, they can easily save the sheet as CSV file, and upload it.

And you can parse the CSV data via: fgetcsv

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
May 31, 2010 May 31, 2010
LATEST

I use excel to process a fantasy league, save the file as a text delimer file, then click import tubaler data in dreamweaver, clean up apply css to the tables, and then good to go. I don't know if this is proper but it works, if any one else knows a better way i am willing to listen

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines