Hi there!
I'm retrieving values from a Mysql database with the help of value named $idid in the following code:
$selectquery = mysql_query("SELECT forumreply.ID, forumreply.RTitel FROM user,forumreply,forumpost WHERE forumreply.RID=$vw AND forumpost.ID=$vw AND forumreply.RAID=$idid ORDER BY forumreply.ID");
echo ("<form name='deleteform' method='post' action='Forum2.php?vw=$vw'>Verwijder <select name='delreply'>");
while ( $row = mysql_fetch_array($selectquery) ) {
$rid=$row["ID"];
$rtitel=$row["RTitel"];
echo ("<option value='$rid' selected>$rtitel</option>\n");
}
echo ("</select> <input type='submit' name='Verzend' value='Go'></form>");
Now, when I display the output of this array, I get the right stuff, but It's displayed for about 6 or 7 or more times. What am I doing wrong?
Tnx 🙂