Skip to content

Instantly share code, notes, and snippets.

@arif98741
Last active January 25, 2018 13:45
Show Gist options
  • Save arif98741/e09f8350e5abb63f109c3d95a138cbe4 to your computer and use it in GitHub Desktop.
Save arif98741/e09f8350e5abb63f109c3d95a138cbe4 to your computer and use it in GitHub Desktop.
wrong code
<?php while($row= $choice ->fetch_assoc()); ?>
<li><input name="choice" type="radio" value="<?php echo $row['id'];?>" /> <? php echo $row['text']; ?></li>
<?php endwhile;? >
right code
<?php while($row= $choice ->fetch_assoc()): ?>
<li><input name="choice" type="radio" value="<?php echo $row['id'];?>" /> <? php echo $row['text']; ?></li>
<?php endwhile;? >
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment