0byt3m1n1-V2
Path:
/
home
/
bangtoey
/
domains
/
bangtoey.go.th
/
public_html
/
news
/
[
Home
]
File: show_news6.php
<?php //require_once('../admin/Connections/conndb.php'); ?> <?php //mysql_select_db($database_conndb, $conndb); $query_rsNews5 = "SELECT * FROM news_detail where cat_id = '28' ORDER BY d_date DESC limit 0,1"; $rsNews5 = mysql_query($query_rsNews5, $conndb) or die(mysql_error()); $row_rsNews5 = mysql_fetch_assoc($rsNews5); $totalRows_rsNews5 = mysql_num_rows($rsNews5); ?> <table width="98%" border="0" cellpadding="2" cellspacing="2"> <?php $i=0; ?> <?php if ($totalRows_rsNews5 != 0) { ?> <?php do { $i++; ?> <tr> <td width="5%" align="center" valign="top"><div align="center" valign="middle" ><img src="../images/icon3.gif" /></div></td> <td width="95%" align="center" valign="top" class="detail-s"><div align="left"><a href="detail.php?id=<? echo $row_rsNews5['id'];?>" class="more"> <?php //echo $row_rsNews5['name']; $topic= $row_rsNews5['name']; if(strlen($topic)>200) { $topic = substr($topic,0,200).".."; } echo $topic; ?> </a></div></td> </tr> <?php } while ($row_rsNews5 = mysql_fetch_assoc($rsNews5)); } // Show if recordset not empty ?> <?php if ($totalRows_rsNews5 == 0) { // Show if recordset empty ?> <tr> <td height="100" colspan="2" class="red"><div align="center">ไม่มีข้อมูล</div></td> </tr> <?php } // Show if recordset empty ?> <!-- <tr> <td colspan="2" class="red"><div align="right"><a href="news.php?cat_id=1" class="news">ข่าวประชาสัมพันธ์ทั้งหมด</a></div></td> </tr> --> </table>
©
2018.