$CONFIG['data_path']= $_SERVER["DOCUMENT_ROOT"].'/bbs/data';
$DB_Connect=@file($CONFIG['data_path'].'/install/setup_mysql.php');
$DB_access=explode('|',base64_decode(strrev($DB_Connect[1])));
$My_DB_Name=$DB_access[4];
$connect=@mysql_connect($DB_access[1],$DB_access[2],$DB_access[3]);
$db_selected=@mysql_select_db($DB_access[4],$connect);
mysql_query("set names utf8");
// STRING CUT: utf-8
function string_cut($str,$len,$rest=""){
$len=intval($len*1.4+0.5);
if(strlen($str)<$len) return $str;
$str2=substr($str,0,$len);
$len2=strlen($str2);
$cnt=0;
for($i=0; $i<$len2; $i++) if(ord($str2[$i])>127) $cnt++;
return substr($str2,0,$len-($cnt%3)).$rest;
}
header("Expires: 0");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
?>
韓国航空券、韓国格安航空券の旅の木
| include "../include/top.html"; ?> |
| include "../include/left.html"; ?> |
| |
| HOME > 留学 |
| 留学 |
| |
 留学ニュース |
 |
$board_id = "board04";
$query = "select subject subject
,no
,wdate
from a_tn2_".$board_id."_list
order by no desc
limit 5";
$result = mysql_query($query, $connect);
while($data=mysql_fetch_array($result))
{
$subject = string_cut($data["subject"],70,"...");
$wdate = date("Y-m-d", $data[wdate]);
?>
| [=$wdate?>] =$subject?> |
}
?>
|
| |
|
|
| include "../include/bottom.html"; ?> |