'SET NAMES utf8mb4' ) ); $sql = "SELECT * FROM `corner` WHERE `no` = '".$corner_no."' LIMIT 1;"; $resulte = $dbh->query( $sql ); $corner_res = $resulte->fetchall(PDO::FETCH_ASSOC); $sql = "SELECT * FROM `web` WHERE `status` = 'OPEN' AND `corner_no` = '".$corner_no."' ORDER BY `open_time` DESC, `url` DESC ;"; $resulte = $dbh->query( $sql ); $web_res = $resulte->fetchall(PDO::FETCH_ASSOC); $webTempText = file_get_contents( $_SERVER['DOCUMENT_ROOT'].'/nabeq/template/web/'.$corner_res[0]['code'].'/link.txt' ); ?> OK!J 限定記事 | セレブリティーライフスタイル「OK!」マガジンの日本公式WEBマガジン「OK!JAPAN」

NEWS BOARD
新着記事一覧

$db_data ) { $match_array['<-DB:web-'.$db_key.'->'] = $db_data; } if( strtotime( '-1 day', time() ) < strtotime( $web_data['open_time'] ) ) { $match_array['<-DB:web-title->'] = 'NEW!! '.$match_array['<-DB:web-title->']; } $match_array[ '<-DATE->' ] = date("Y.m.d", strtotime( $web_data['open_time'] ) ); $viewText = strtr( $webTempText, $match_array ); echo $viewText; } ?>