i would say,altho ive never done this before, setup a db like this
id (primary key),ip (unique),vote
then when they vote, if its a unique ip, add their vote in the vote column..
logging votes:
<a href='vote.php?vote=voteval'>vote for this</a>
(( or use radio buttons, forms ,etc ))
insert into table ip=their ip,vote=voteval
grabbing vote tally:
select * from table where vote=$voteval;
of votes = mysql_num_rows
theres prob a better solution out there, but this is pretty basic and simple if you need a better example just let me know