Topic: Voting on Images

How difficult would it be to allow visitors to vote on an image with the vote being transferred to a mysql db via a php script storing the users ip address so that users voting more than once on the same image would be ignored.