Tryag File Manager
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
home
/
nayongnua
/
domains
/
nayongnua.go.th
/
public_html
/
news
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/nayongnua/domains/nayongnua.go.th/public_html/news/show_news1.php
<?php //require_once('../admin/Connections/conndb.php'); ?> <?php //mysql_select_db($database_conndb, $conndb); $query_rsNews5 = "SELECT * FROM news_detail where cat_id = '1' ORDER BY created 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%" valign="top"> <div align="center" ></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="red"> <?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 ?> </table>