include("include/mysql.php");//資料庫
//字數限制
function cutword($cutstring,$cutno){
if(strlen($cutstring) > $cutno) {
for($i=0;$i<$cutno;$i++) {
$ch=substr($cutstring,$i,1);
if(ord($ch)>127) $i++;
}
$cutstring= substr($cutstring,0,$i)."...";
}
return $cutstring;
}
//HTTP
$page = $_GET['page'];
if($page == ""){$page = 1;}
$orderKind = $_GET['orderKind'];
if($orderKind == ""){$orderKind='date';}
$Nid = $_GET['Nid'];
$strSQLlookAdd = "UPDATE News SET look=look+1 WHERE seq_id='$Nid'";
mysql_query($strSQLlookAdd);
$strSQL = "SELECT * FROM News WHERE seq_id='$Nid'";
$res=mysql_query($strSQL);
$row=mysql_fetch_array($res);
?>
|
|
統編:19381866 |
|
電話:03-5208271 |
|
傳真:03-5192260 |
|
手機:0932-117870 |
|
0988-527955 |
|
|
echo "$row[date]";?> |
|
echo "$row[title]";?>
|
$strSQL2 = "SELECT * FROM News WHERE seq_id<>'$Nid' ORDER BY date DESC LIMIT 3";
$res2=mysql_query($strSQL2);
WHILE($row2=mysql_fetch_array($res2)){
?>
}?>
|
|
COPYRIGHT c 2012 易銓 DESING BY PROC BEST VIEW : 1024*768 |
|