<tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr bgcolor="#D74B4B"> <td width="24%"> <div align="center"><font color="#000000" size="3"><strong>การแข่งขัน</strong></font></div></td> <td width="9%"> <div align="center"><font color="#000000" size="3"><strong>เวลา</strong></font></div></td> <td width="30%" height="29"><div align="center"><font color="#000000" size="3"><strong>คู่แข่งขัน</strong></font></div></td> <td width="14%"><div align="center"><font color="#000000" size="3"><strong>ราคา</strong></font></div></td> <td width="14%"><div align="center"><font color="#000000" size="3"><strong>ฟันธง</strong></font></div></td> <!--<td width="13%"> <div align="center"><font color="#000000" size="3"><strong>คำเล่นลิ้น</strong></font></div></td>--> <td width="9%"><div align="center"><font color="#000000" size="3"><strong>ผล</strong></font></div></td> </tr> </table> <? $page = $_GET['page']; $select_type="select * from tdedboard order by id desc"; $query_select=mysql_query($select_type); $num_rows=mysql_num_rows($query_select); if($num_rows<1){ echo "<br><br><center><font color=#666666 face=tahoma size=2><b>ยังไม่มีการเพิ่มข้อมูลค่ะ</b></font></center>"; }else{ $select="select * from tdedboard order by id desc"; $q_ry = mysql_query($select); $num_rows=mysql_num_rows($q_ry); $pagesize=30; $rt=$num_rows%$pagesize; if($rt!=0) { $totalpage=floor($num_rows/$pagesize)+1; } else { $totalpage=floor($num_rows/$pagesize); $toppic_id=1; } if(empty($page)) { $page=1; } mysql_free_result($q_ry); $goto=($page-1)*$pagesize; $sql_select_mem="Select * From tdedboard where datep='2013-11-12' limit $goto,$pagesize"; $fect=mysql_query($sql_select_mem); if(!$fect) { ("ติดต่อฐานข้อมูลไม่ได้".mysql_error()); exit; } $bgcount=0; while($rows=mysql_fetch_array($fect)) { $idp =$rows['id']; $leaugeid =$rows['leaugeid']; $datep = $rows['datep']; $timep = $rows['timep']; $team1 = $rows['team1']; $team1ok = $rows['team1ok']; $team2 = $rows['team2']; $team2ok = $rows['team2ok']; $priceok = $rows['priceok']; $tdedprice = $rows['tdedprice']; $tded = $rows['tded']; $wordtded = $rows['wordtded']; $score = $rows['score']; $sqll="select * from leauge where id='$leaugeid'"; $db_query=mysql_db_query($db,$sqll); $resultl=mysql_fetch_array($db_query); $leaugename=$resultl[leaugename]; ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td bgcolor="#DCDDD8"><table width="100%" border="0" cellspacing="1" cellpadding="1"> <tr> <td> <? echo "$leaugename"; ?> </td> </tr> <tr bgcolor="#354B5E"> <td width="24%" height="51"> <div align="center"><font color="#ffffff" size="2"> <? echo "$datep"; ?> </font></div></td> <td width="9%"><div align="center"><font color="#ffffff" size="2"> <? echo "$timep"; ?> </font></div></td> <td width="30%"><div align="center"> <? if ($team1ok == "99999") { echo "<font size=2 color=#D74B4B>$team1</font>"; }else if ($team1ok == "00000") { echo "<font size=2 color=#ffffff>$team1</font>"; } ?> <font size="2" color="#ffffff"> VS. </font> <? if ($team2ok == "99999") { echo "<font size=2 color=#D74B4B>$team2</font>"; }else if ($team2ok == "00000") { echo "<font size=2 color=#ffffff>$team2</font>"; } ?> </a><br /> <font color="#ffffff" size="2"> <? echo "$priceok"; ?> </font></div></td> <td width="14%"><div align="center"><font color="#ffffff" size="2"> <? echo "$tdedprice"; ?> </font></div></td> <td width="14%" bgcolor="#354B5E"> <div align="center"><font color="#ffffff" size="2"> <? echo "$tded"; ?> </font></div></td> <!--<td width="13%"> <div align="center"><font color="#ffffff" size="2"> <? echo "$wordtded"; ?>--> </font></div></td> <td width="9%"><div align="center"> <font size="2"> <? if ($score == "win") { echo "<font size=2 color=#00CC33>WIN</font>"; }else if ($score == "loss"){ echo "<font size=2 color=#afafaf>LOSS</font>"; }else{ echo ""; } ?> </font></div></td> </tr> </table></td> </tr> </table> <? } } ?> </td> </tr>
$bgcount=0; . . . <tr> <td> <? echo "$leaugename"; ?> </td> </tr>
$bgcount=0; $recentLeague = ''; . . . <?php if($leaugename!=$recentLeague){ ?> <tr> <td> <?php echo "$leaugename"; $recentLeague = $leaugename; ?> </td> </tr>
$bgcount=0; $recentLeague = ''; . . . <?php if($leaugename!=$recentLeague){ ?> <tr> <td> <?php echo "$leaugename"; $recentLeague = $leaugename; } ?> </td> </tr>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง