Jump to content

upload text comma delimited file


damonlee3

Recommended Posts

What does the database have to do with what you just said you wanted to do? You want them to paste the contents of the file into the textbox and store it in the database? Or do you want it to parse the values and sotre them in a bunch of fields in the table?

Create an HTML form, then get the value of the textarea, then store it in your database. Look at the tutorials for information on databases if that's where your stuck...

Ted: Comma Delimited means the values are separated by commas.
ID,Name,Email,
1,Ted,[email protected],
2,jesirose,[email protected],

etc.
Ok,

My client wants to be able to make changes to her resume and post it on her site.  The simplist way is for it to be listed in a csv type format. 

She could then upload it simply by pasting into a text box and upload. (I'm kind of a noob so I assumed the need for a database) then again, the text could be uploaded and just "read" by the html page?
Why is that the simplest way? CSV files often seem to be more trouble than they're worth. Why not just have a few text boxes for each section and let her type in data.

What kind of resume has data that you'd put in a csv? I mean, there are so many different parts, there's education, past work, objective - those aren't things that would work in a csv.

I am kind of confused with what you're doing.
lol, sorry

She is an actress, so her resume format is very simple.  All that it consists of is The movie title, her role, and the company that produced the film. 

For example:

Fields of Mudan,Lead,ABCprodutions.

If I do it with text boxes for each category, then I have to provide three text boxes for each movie.  What if she adds more films? 

So, if a text file already exists with all here resume info, all she would have to do is edit that text file, paste and upload.

See my point?  Sorrry for any confusion  ::)
You could do that, then parse the data, store it in the database however you chose.
You could just upload the actual text file, not copy and paste but upload, then parse it when the file is viewed.
There are a ton of ways you could do this. If a csv file is easiest, then do that. How you store it in the database is up to you, but it sounds like you have a movies table with fields title, role, company. Easy to add more. *shrug*

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.