Last one for tonight I promise.
I'm setting php to get the contents of a flat file (Not the same from the previous post) and inside of it are names of people in my database. What I want to do is replace these peoples names with their unique member ID. Problem is there are 3500 of these people in the database and their names are repeated several times each througout the text file. (Though only about 1200 of them are in the file they are repeated numerous times.)
I tried to setup an if statement for each name search the variable $s, which was my file_get_contents, for the name and replace it with the id. Then I threw that in my script with the file get contents via a php include, but... it didn't work 😐 Ideas gents... oh and ladies?
Thanks in advance.
Brian