Hello,
Thanks for that. Let me explain what I am trying to do. I am reading in a text file, scanning it, extracting information and then inserting records into a MYSQL database.
On the beginning of each line of the text file is an identifier.
One of the identifiers is RN (it stands for room description)
As I scan the file the occurance of RN will or could appear more than once.
There would appear not be more than 10 occurences of this.
I have setup 10 fields in my database called rn1 through to rn10.
each time I come across the next occurence of RN in the text file I want to put the contents into the next rn(*) field in the database.
The variable I am using is $rn to scan the file, so for the first occurence of the RN identifier i wan't to put it into a variable called $rn1 and so on.
I just can't get the $rn(number) bit to work.
Regards
Rowan