this issue has been bugging me for a while. I've got a database in MySQL, managed by phpMyAdmin. We'll call this Database 1
. It holds the records of research on music, sorted like this. Database 1
is outside-sourced.
[song title] [song artist] [how many times song was played, "spins."]
The text file, we'll call this Database 2
, is sorted differently. It contains similar information. Song title, artist and its location within our system based on an inventory number. All of that information is on one line, no separation symbol of any kind. Just spacing. Example Line:
3793 THE BEETLES ELEANOR RIGBY
3793
is our inventory number, THE BEETLES
is the artist, ELEANOR RIGBY
is the song. That's exactly how it's laid out in the file - by the way, this file is 2400 songs long.
I'm trying to cross reference these. If a song exists in db1, and not in db2, it needs a flag. Same thing vice versa. I was trying to do this with a version of: PHP to search within txt file and echo the whole line
Db1 & db2 are in a file on my localhost xampp server.