php - Search and Replace within a Text file using mySQL queries -


How do I create a PHP database instead of name with the search.txt file for each name in the database table? Id?

so that the text file looks like this:

  3 | 1 | 4 | 5 2 3 | 6 4 | 5 | 2 and even more like this ...  

I have a table called "mysql" which looks like this:

  ----- ---------------- ID | Name --------------------- 1 | Bob 2 John 3 | Tom and so on ...  

I have a text file called "test.txt" which looks like this:

  tom | Bob | Mary | Paul Joan | Tom | Rachel Marie | Paul | John and so on on one ... 

Welcome to the SO you have a lot Good number!

However, your question is not clear what is the problem? An algorithm?

The easiest way to read both the file and the table in the array and then to change the numbers with the names, to run a loop other data.
Then write a file.


Comments