|
「What's New in 北京」在留邦人の生活関連ニュース |
include("/home/shanghai/utfdb2con.inc");
if($dbcon) {
$rtn = pg_exec("SELECT * FROM news_headline WHERE areabj='Y' AND (ctgy=20 OR ctgy=21) ORDER BY tdate DESC LIMIT 5");
$n=pg_num_rows($rtn);
if(!$rtn || !$n){ "ERROR! table news";
}else{
for($i=0;$i<$n;$i++){
$row=pg_fetch_array($rtn,$i);
$tdate = explode(" ",$row['tdate']);
$ttime = explode(":",$tdate[1]);
$tdate = explode("-",$tdate[0]);
if(time() > @mktime($ttime[0],$ttime[1],0,$tdate[1],$tdate[2],$tdate[0])){
if($row['photo']=="Y"){ $photo = " "; }else{ $photo = ""; }
?>
| echo(htmlspecialchars(strip_tags($row['title']))); ?>( echo($tdate[1]); ?>/ echo($tdate[2]); ?> echo($ttime[0]); ?>: echo($ttime[1]); ?>掲載) echo($photo); ?> |
}
}
}
}
?>
|
|
エクスプロア・ブログ 北京の生活関連のトラックバック |
| include("/home/shanghai/infiles/tb.inc"); ?> |
|
|
|
|
|