내 코드가 작동하지 않는 것처럼 보입니다. 라디오 버튼이 보이지만 아무것도 보이지 않습니다. 마치 코드를 가지고 반복적으로 테스트 한 것처럼 mysql_fetch_array가 작동하지 않는 것처럼 보입니다. 코드에서 문제가 발생하는 곳을 찾고 작업을 중단하십시오. 누군가 잘못된 정보를 알려주십시오. 건배 ps. 나는 이것에 새롭, w3schools에 PHP 자습서를 마지막 며칠 배우는 끝냈다.PHP 에코가 작동하지 않습니다
<body>
<?php
include 'dbyear2.php';
$qnumber = $_REQUEST['uqn']; // obtain question number from URL
$find = mysql_query("SELECT * FROM Renal WHERE UQN='$qnumber'");
while($retrieve=mysql_fetch_array($find));
{
$retrieve['question'] = $question;
$retrieve['MCQ_A'] = $a;
$retrieve['MCQ_B'] = $b;
$retrieve['MCQ_C'] = $c;
$retrieve['MCQ_D'] = $d;
$retrieve['MCQ_E'] = $e;
$retrieve['answer'] = $answer;
$retrieve['MCQ_correct'] = $correct;
}
?>
<form action='check.php' method='POST'>
<table>
<tr><td></td><td></td></tr>
<tr></tr>
<tr><td><input type='radio' name='group1' value='A' /></td><td> <?php echo $a; ?></td></tr>
<tr><td><input type='radio' name='group1' value='B' /></td><td> <?php echo $b; ?></td></tr>
<tr><td><input type='radio' name='group1' value='C' /></td><td> <?php echo $c; ?></td></tr>
<tr><td><input type='radio' name='group1' value='D' /></td><td> <?php echo $d; ?></td></tr>
<tr><td><input type='radio' name='group1' value='E' /></td><td> <?php echo $e; ?></td></tr>
<tr>
<?php
// sending the retrieved information from MYSQL via POST for use in check.php file
$qnumber;
$a;
$b;
$c;
$d;
$e;
$answer;
$correct;
?></tr>
<tr><td><input type="submit" value="Submit"></td></tr>
</table>
</form>
</body>
</html>
나는 이것을 변경했지만 여전히 작동하지 않습니다. 다른 제안? – MFA