Jump to content

Recommended Posts

I have an excel file that has several columns with different data and I need to create a form that can upload this excel file and insert the data from the columns into its conrresponding data columns in a mysql database. I know how to create the form but I have no idea how to get the file and tell it to input each cell of data into its corresponding field in the mysql database. Does anyone know how to do this? Any help would be appreciated.

 

Thanks,

I have a computer program that gives me a list of our current inventory and I can save it to an excel file. I want to create a page that I can use to upload that excel file and then use a barcode scanner to scan the inventory on our warehouse and for the program to check the code being scanned and match it with the codes that were uploaded to the database from the excel file. Would it be possible to make the php code convert the excel file into a csv and upload it so the user doesn't have to convert the excel file to csv?

I have used an open source project called PHPEXCEL for over a year. It is a very comprehensive spreadsheet manipulation class. Besides the fact it can read excel sheets as objects, it also allows you to read write and convert file formats, ie excel to csv.

 

I have found it incredibly useful, not just for inputting but for building and creating tasty looking spreadsheets on the fly from php.

 

Is worth a try, again you can find it at sourceforge

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.