Quote: <label><input name="no1" type="radio" value="a" />a</label> <label><input name="no1" type="radio" value="b" />b</label> <label><input name="no1" type="radio" value="c" />c</label> <label><input name="no1" type="radio" value="d" />d</label> <br /> <label><input name="no2" type="radio" value="a" />a</label> <label><input name="no2" type="radio" value="b" />b</label> <label><input name="no2" type="radio" value="c" />c</label> <label><input name="no2" type="radio" value="d" />d</label> <br /> <label><input name="no3" type="radio" value="a" />a</label> <label><input name="no3" type="radio" value="b" />b</label> <label><input name="no3" type="radio" value="c" />c</label> <label><input name="no3" type="radio" value="d" />d</label> <br /> <label><input name="no4" type="radio" value="a" />a</label> <label><input name="no4" type="radio" value="b" />b</label> <label><input name="no4" type="radio" value="c" />c</label> <label><input name="no4" type="radio" value="d" />d</label> <br /> <label><input name="no5" type="radio" value="a" />a</label> <label><input name="no5" type="radio" value="b" />b</label> <label><input name="no5" type="radio" value="c" />c</label> <label><input name="no5" type="radio" value="d" />d</label>
<?php ob_start(); include "connect.php"; ?> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <? $ques_num=1; $sql = "select * from question where ex_id = '1' order by ques_id LIMIT 0,10"; $db_query = mysql_query($sql) or die("Select error"); $count = mysql_num_rows($db_query); if($count!=10) { echo "<center>ขออภัยค่ะ ขณะนี้ยังไม่สามารถเข้าทำแบบทดสอบในบทเรียนนี้ได้ค่ะ</center>"; } else { while ($r=mysql_fetch_array($db_query)) { $qid=$r[ques_id]; $ques=$r[question]; $c1=$r[choice1]; $c2=$r[choice2]; $c3=$r[choice3]; $c4=$r[choice4]; echo "<font class='font' size='2pt'><B>ข้อ $qid. $ques </B><BR> <INPUT TYPE='radio' NAME='select_$id' VALUE='1'> $c1 <BR> <INPUT TYPE='radio' NAME='select_$id' VALUE='2'> $c2 <BR> <INPUT TYPE='radio' NAME='select_$id' VALUE='3'> $c3 <BR> <INPUT TYPE='radio' NAME='select_$id' VALUE='4'> $c4 </font> <HR>"; } } mysql_close(); ob_end_flush(); ?>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง