Hi,
I am working with a databse that has a field - the content of which looks like this:
1,33|2,IMS|3, 2004|4,39.5|5,1|12,0.84|13,0.84|14,0.26|15,0|16,0|17,40|33,0|32,Other Charges|20,1|21,17.5|24,4006||
Basically, it is a rate card.
the number after the pipe symbol denotes the rate card item and the text or numbers after the comma is the rate card value. The double pipe signifies the end of the rate card.
I have another database with field numbers 1 - 35. I need to exctract the data from that string and insert it into the database.
Essentially then, based on the above example, i am looking for output similar to this:
$n1 = 33
$n2 = ims
$n3 = 2004
Any help or the combination of functions i need would be gratefully appreciated!
Regards
ChaosT