<meta charset="UTF-8"> <fieldset> <legend>ตารางแสดงข้อมูล Computer</legend> <?php include_once "connect.php"; $SQLTXT="SELECT * FROM Computer"; $rs=mysql_query($SQLTXT); ?> <table border ="1"> <thead> <tr> <td>ลำดับที่</td> <td>Comp_name</td> <td>IP_Address</td> <td>User_name</td> <td>Section</td> <td>Brand_name</td> <td>Model</td> <td>Service_tag</td> <td>Batterry</td> <td>วันที่ update</td> </tr> </thead> <tbody> <?php while($show=mysql_fetch_assoc($rs)){ ?> <tr> <td aling ="center"><? ++$n ?></td> <td><?=$show['Comp_name'];?></td> <td><?=$show['IP_Address'];?></td> <td><?=$show['User_name'];?></td> <td><?=$show['Section'];?></td> <td><?=$show['Brand_name'];?></td> <td><?=$show['Model'];?></td> <td><?=$show['Service_tag'];?></td> <td><?=$show['Batterry'];?></td> <td><?=$show['Date'];?></td> </tr> <? } ?> </tbody> </table> </fieldset>
<meta charset="UTF-8"> <fieldset> <legend>ตารางแสดงข้อมูล Computer</legend> <?php include_once "connect.php"; $SQLTXT="SELECT * FROM Computer"; $rs=mysql_query($SQLTXT); $row = mysql_num_rows($rs); //เพิ่มตรงนี้ ?> <table border ="1"> <thead> <tr> <td>ลำดับที่</td> <td>Comp_name</td> <td>IP_Address</td> <td>User_name</td> <td>Section</td> <td>Brand_name</td> <td>Model</td> <td>Service_tag</td> <td>Batterry</td> <td>วันที่ update</td> </tr> </thead> <tbody> <?php $n = 0; $n < $row;//เพิ่มตรงนี้ while($show=mysql_fetch_assoc($rs)){ $no++//เพิ่มตรงนี้ ?> <tr> <td align ="center"><?=$n; ?></td> <td><?=$show['Comp_name'];?></td> <td><?=$show['IP_Address'];?></td> <td><?=$show['User_name'];?></td> <td><?=$show['Section'];?></td> <td><?=$show['Brand_name'];?></td> <td><?=$show['Model'];?></td> <td><?=$show['Service_tag'];?></td> <td><?=$show['Batterry'];?></td> <td><?=$show['Date'];?></td> </tr> <? } ?> </tbody> </table> </fieldset>
<meta charset="UTF-8"> <fieldset> <legend>ตารางแสดงข้อมูล Computer</legend> <?php // include_once "connect.php"; // $SQLTXT="SELECT * FROM Computer"; // $rs=mysql_query($SQLTXT); ?> <table border ="1"> <thead> <tr> <td>ลำดับที่</td> <td>Comp_name</td> <td>IP_Address</td> <td>User_name</td> <td>Section</td> <td>Brand_name</td> <td>Model</td> <td>Service_tag</td> <td>Batterry</td> <td>วันที่ update</td> </tr> </thead> <tbody> <?php foreach (range(1, 10) as $v) { ?> <tr> <td align ="center"><?=$v?></td> <td><?=$v?></td> <td><?=$v?></td> <td><?=$v?></td> <td><?=$v?></td> <td><?=$v?></td> <td><?=$v?></td> <td><?=$v?></td> <td><?=$v?></td> <td><?=$v?></td> </tr> <? } ?> </tbody> </table> </fieldset>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง