Hey, ok, so I have a pretty big text file (350 lines) and the general form looks like this:
Part one
1.
.1
.1 some text
.2 some more text
.2
.1moreee
.3 yet more
etc..so it looks like this:
1.1.1 = some text
1.1.2 = some mroe text
1.2.1 = moreee
1.3 = yet more
I have it set up (from ms word) so that it looks like this:
Part one
@1.
#.1
%.1 some text
%.2 some more text
#.2
%.1moreee
so that everything on tier1 has a @ infront of it, tier 2 has a # and etc...
I did it in excel using the delimiator function in VB...but now I want to get it up into my sql server....I think it would be easiest to just put the word file in a text area in php and have it sort itself out...
So how can i deliminate in php? I was reading about the split() function, but I am not quite sure if that is what I want.
Also, I would like it so that anything starting with a @ goes into field 1, # into field 2 etc (of my sql database) that I can prolly figure out after I know how to properly deliminate stuff..
Any tips would be greatly appreciated
Here is a link to the .txt file if you want to have a look to see what I am talking about http://pdem.mattwatson.info/Standards/standard.txt
thanks