Skip to content

Instantly share code, notes, and snippets.

@kohki-shikata
Created February 4, 2014 03:33
Show Gist options
  • Save kohki-shikata/8797756 to your computer and use it in GitHub Desktop.
Save kohki-shikata/8797756 to your computer and use it in GitHub Desktop.
campaing banner
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>deadline php</title>
</head>
<body>
<?php
$current = time();//現在時刻の取得
$xday = "20140203";//締切日の設定。YYYYMMDD形式
$xday = strtotime($xday);//UNIX時に変換
if($current>$xday):?>
<!--ここにキャンペーンバナーとかを貼ろう!-->
<img src="" width="480" height="60" alt="キャンペーン実施中!" />
<!--ここまで-->
<?php endif;?>
</body>
</html>
@kohki-shikata
Copy link
Author

sorry, I can't even understand. I'm not good at Gist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment