Hi everyone,
I searched the forums on this and cannot seem to get this figured out. Although I'm sure it's out there somewhere, because this doesn't seem too complex. I am being sent a text file on a nightly basis. I would like to import this text file into a MySQL database.
The first line in the text file is a list of the database fields I would like to use. However, there are several instances of duplicated field names. For example, below "EmailAddress" appears twice. How do I rename these to make each of these unique?
Transaction_Type|MLSNumber|ListOfficeId|Address1|Address2|City|Company|EmailAddress|PhoneMain|State|WebPage|Zip5|ListAgentId|EmailAddress|
I am sort of new to working with PHP and text files. Any guidance would be greatly appreciated. Even suggestions on the proper terminology that I should be searching for would be great.
Thanks in advance!