echo '
'; $result = mysql_query("SELECT * FROM vote_alternatives WHERE vote_id='$id'"); for ($x = 0; $x < mysql_num_rows($result); $x++) { $row = mysql_fetch_assoc($result); echo ' '; echo $row['alternative'].'
'; } echo ''; echo '
';