Learn to Code
John F. Dumas
contact me | resume | how it works | example programs | testimonials | main page
PHP - User Ratings
► Problem Description: For this problem, we first want to identify the user id numbers of all users who ranked the movie "Witness For The Prosecution" a 5. There are 2,406 such users.
Next, for each of those 2406 users, we need to get a list of all titles rated by that user and the rating for each title. If (for example) the user id for a user was '96441', then we want to create a file:
Containing all that user's ranking information. Something like:
120,5 166,3 175,3 197,2 241,5 290,5 357,3 457,5 569,4 588,3 ...
As we can see the movies this user rated a '5' were: 120, 241, 290 and 457.
120,2004,Plain Dirty 241,1959,North by Northwest 290,Harold and Kumar Go to White Castle 457,2004,Kill Bill: Vol. 2
This process will likely take some time to complete.
► Source Code