Name the Baby

Suggestion:

"; } } if($vote && $already_voted) { echo "Hey, you voted "; echo "already! Vote ignored.

\n"; } else if($vote) { if(!mysql_db_query($db, "update $table set votes=votes+1 where name='$vote'")) { echo mysql_errno().": "; echo mysql_error()."
"; } } $result=mysql_db_query($db, "select sum(votes) as sum from $table"); if($result) { $sum = (int) mysql_result($result,0,"sum"); mysql_free_result($result); } $result=mysql_db_query($db, "select * from $table order by votes DESC"); echo ""; echo ""; echo "\n"; while($row=mysql_fetch_row($result)) { echo ""; } echo "\n"; } echo "
VoteIdeaVotes
"; echo ""; echo $row[0].""; echo $row[1].""; if($sum && (int)$row[1]) { $per = (int)(100 * $row[1]/$sum); echo " $per %
\n"; mysql_free_result($result); ?>