$conn = mysql_connect('localhost','anj','db5al83k'); mysql_select_db('anj',$conn); ?> $conn = mysql_connect('localhost','anj','db5al83k'); mysql_select_db('anj',$conn); if ($conn == FALSE) { echo "
データベースに接続できませんでした"; die(); } $koen_zanryo_sho = 15; $set_zanryo_sho = 15; $ticket_dir = "/ticket/cart/"; $root_url = "http://tif.anj.or.jp"; $root_url_ssl = "https://tif.anj.or.jp"; $root_dir = "/home/anj/public_html/tif/"; $ticket_url = $root_url_ssl.$ticket_dir; ?> function koenymd($ymd, $yobi){ $koenbi .= substr($ymd, 0, 4) . "年"; if(substr($ymd, 5, 1)==0){$koenbi .= substr($ymd, 6, 1) . "月";}else{$koenbi .= substr($ymd, 5, 2) . "月";} if(substr($ymd, 8, 1)==0){$koenbi .= substr($ymd, 9, 1) . "日";}else{$koenbi .= substr($ymd, 8, 2) . "日";} $koenbi .= "(". $yobi .") "; if(substr($ymd, 14, 2)=='00'){$koenbi .= substr($ymd, 11, 2) . ":00";}else{$koenbi .= substr($ymd, 11, 2) . ":".substr($ymd, 14, 2) ."";} return $koenbi; } function koenymds($ymd, $yobi){ if(substr($ymd, 5, 1)==0){$koenbi .= substr($ymd, 6, 1) . "月";}else{$koenbi .= substr($ymd, 5, 2) . "月";} if(substr($ymd, 8, 1)==0){$koenbi .= substr($ymd, 9, 1) . "日";}else{$koenbi .= substr($ymd, 8, 2) . "日";} $koenbi .= "(". $yobi .") "; if(substr($ymd, 14, 2)=='00'){$koenbi .= substr($ymd, 11, 2) . ":00";}else{$koenbi .= substr($ymd, 11, 2) . ":".substr($ymd, 14, 2) ."";} return $koenbi; } function zenjitsu_s($ymd){ return substr($ymd, 0, 10) . " 00:15:00"; } function zenjitsu($ymd){ $zenjitsu_time = (integer)strtotime($ymd) - 86400; $zenjitsu_ymd = date('Y-m-d', $zenjitsu_time); $zenjitsu = $zenjitsu_ymd . " 23:59:59"; return $zenjitsu; } ?>