<?PHP $no=1; if($Num_Row>0){ while($fetch=mysql_fetch_array($objQuery)){ ?> <tbody> <tr> <th scope="row"><?php echo $no++; $Num_Row--;?></th> <td><?PHP echo $fetch['point']; ?></td> <td><?PHP echo $fetch['point_no']; ?></td> <td><?PHP echo $fetch['activity']; ?></td> <td bgcolor="<?php if (trim($fetch['2561'])=="1"){?> 'red' <?PHP } else if (trim($fetch['2561'])=="2") { ?> 'green' <?PHP } else {?> 'orange' <?PHP } ?> "><?PHP echo $fetch['2561']; ?></td> <td bgcolor="<?php if (trim($fetch['2562'])=="1"){?> 'red' <?PHP } else if (trim($fetch['2562'])=="2") { ?> 'green' <?PHP } else {?> 'orange' <?PHP } ?> "><?PHP echo $fetch['2562']; ?></td> <td bgcolor="<?php if (trim($fetch['2563'])=="1"){?> 'red' <?PHP } else if (trim($fetch['2563'])=="2") { ?> 'green' <?PHP } else {?> 'orange' <?PHP } ?> "><?PHP echo $fetch['2563']; ?></td> <td bgcolor="<?php if (trim($fetch['2564'])=="1"){?> 'red' <?PHP } else if (trim($fetch['2564'])=="2") { ?> 'green' <?PHP } else {?> 'orange' <?PHP } ?> "><?PHP echo $fetch['2564']; ?></td> <td bgcolor="<?php if (trim($fetch['2565'])=="1"){?> 'red' <?PHP } else if (trim($fetch['2565'])=="2") { ?> 'green' <?PHP } else {?> 'orange' <?PHP } ?> "><?PHP echo $fetch['2565']; ?></td> </tr> <?PHP } } ?>
<tbody> <?PHP $clr = ['orange', 'red','green']; $no=1; //if($Num_Row>0){ ไม่จำเป็นต้องใช้ while($fetch=mysql_fetch_array($objQuery)){ ?> <tr> <th scope="row"><?=$no++?></th> <td><?=$fetch['point']?></td> <td><?=$fetch['point_no']?></td> <td><?=$fetch['activity']?></td> <td bgcolor="<?=$clr[ in_array( $x=intval($fetch['2561']), [1,2]) ? $x : 0]?>" ><?=$x?></td> ... ... </tr> <?PHP } ?> </tbody>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง