Jump to content

Building a File Publishing Tool / Web Page


abhi_madhani

Recommended Posts

Hi friends

 

I am developing a functionality in a website where a Admin can publish/save 'excel' files to a database, that are uploaded to a server by members. To achieve this I have devised the following steps.

 

1. A webpage that let admin view all the files uploaded on the server in a particular directory (.files/) . - DONE

2. A PHP code that can grab names of the files in a array.

3. A PHP wepage that can automatically publish/save those file to a database, without human intervention.

[This page being able to read the array, and store the results in a database].

 

Its a bit complicated process, but does anyone knows how to acheive this as to what should steps should I take to acheive this. Please guide me through this. If you want any more clarification as to what I am trying to achieve, then in simple term 'Publishing a file to database, via web interface'.

 

Regards,

Abhishek

 

Link to comment
Share on other sites

Hi,

 

I am already saving the file name to a seperate table in a database. - Acheived this by listing the file name, and passing the name as a variable to mysql_query insert statement.

 

Now I need is to a 'save the data in those excel files' into the 'database'. - Controlling this via Web Inteface.

 

Regards,

Link to comment
Share on other sites

Hi hacklive

 

Yes exactly what you have mentioned, that something that can retrieve data from excel files, and store them in database,

 

This below mentioned Future and advance coding, only to be done once the above step is accomplished.

the reverse options is not that important, because if a member can upload only one excel file. and if he uploads a new file, than all his previous data stored in database will also be updated with new changes.

Link to comment
Share on other sites

Hi hacklive

 

Yes exactly what you have mentioned, that something that can retrieve data from excel files, and store them in database,

 

This below mentioned Future and advance coding, only to be done once the above step is accomplished.

the reverse options is not that important, because if a member can upload only one excel file. and if he uploads a new file, than all his previous data stored in database will also be updated with new changes.

 

If the reverse is not importnat why upload at all, its just going to sit there and noone can see or download it ???? makes little sense ????

Link to comment
Share on other sites

Hi, hacklive

 

What you have suggested is exact solution, but just for a single excel file.

 

The admin will have many excel files to process, and for that it may not be possible using the above mentioned method. Is there any other solution, that can process many files together.

 

The uploaded excel files, are not just ordinary files, that are product files for merchants,

which will be stored in the database.

Once the products from particular merchants are stored, then anybody can view them via Web Interface.

 

I am building a site just similar to 'Auction or Shopping website' but where sellers can upload their products via excel file.

 

 

Link to comment
Share on other sites

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.