I have files named like item_66b.rating and the contents are like below, which includes the ip of each voter and what they ranked the item. Is there anyway to extract this and move it to a mysql database? 1|84.203.5.1 1|74.196.169.24 1|74.105.150.17 4|78.57.96.23 5|67.164.138.13 1|62.150.109.23 1|88.227.115.4 2|83.226.48.11 3|68.175.29.20 2|80.189.120.24 5|196.218.114.7 4|65.184.215.2 1|172.141.149.8 5|71.141.248.18 4|76.17.196.15 5|24.145.174.22 1|71.63.211.7 1|66.92.11.9 5|76.102.8.13 5|201.27.202. 4|207.172.89.9 4|69.234.191.19 1|75.24.4.17 3|222.152.8.19 3|62.136.27.8 500000000|66.229.198.6 1|87.244.83.18 2|64.135.173.5 1|213.37.42.16 4|81.79.33.17 5|63.254.135.12 3|12.226.165.20 5|72.225.151.15 5|68.39.25.19 5|88.246.64.3 5|82.222.154. 5|204.95.134.5
You should do this with PHP. I'm not a programmer so I can't code anything for you but you might get more help posting or moving this thread to the php forums.
thx for the help. I decided to just add a code to the rating script to write the results to the database and the update it everytime someone votes. Its working great.