輸入決定

query($sqlchoice); $choicenum = $choiceresult->num_rows; while( $counter < $choicenum) { // Extract one row into an array $choicerow = $choiceresult->fetch_assoc(); if($choicerow["cid"]==1) { $choice1 = $choicerow["cdesc"]; } elseif($choicerow["cid"]==2) { $choice2 = $choicerow["cdesc"]; } else { $choice3 = $choicerow["cdesc"]; } $counter = $counter + 1; } $counter = 0; echo "

姓名: ".$name."

"; echo "你的決定是:

"; ?>

回主頁