$result = mysql_query("SELECT *
FROM `tblquestion`
WHERE questiontype = 'Methods' ", $connect);
<?php
echo "<br>";
while($row = mysql_fetch_array($result))
{
echo "<br>";
echo "<strong>" . $row["questionno"] . ".</strong> " . $row["question"] . "";
echo "<br>";
echo "<input type = radio name = ". $row ["questionid"] . "' id = '". $row ["questionid"] . "' value = 5/>5";
echo "<input type = radio name = ". $row ["questionid"] . "' id = '". $row ["questionid"] . "' value = 4/>4";
echo "<input type = radio name = ". $row ["questionid"] . "' id = '". $row ["questionid"] . "' value = 3/>3";
echo "<input type = radio name = ". $row ["questionid"] . "' id = '". $row ["questionid"] . "' value = 2/>2";
echo "<input type = radio name = ". $row ["questionid"] . "' id = '". $row ["questionid"] . "' value = 1/>1";
echo "<br>";
}
echo "<br>";
?>
Is it possible to insert/post the values with this kind of radio buttons using mysql_fetch_array
$row["questionid"]
? I'm asking this since I cant really find a way to get the values of each respective $row["questionid"]
.
PICTURES: