year.php

“;
$result = mysql_query($sql);

echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
while($row = mysql_fetch_assoc($result)) {
if (preg_match(“/(【ライブ】|【テレビ】|【ラジオ】)(.+?)/su”, $row[“post_title”])) {
if(substr($row[“ymd”],0,10) < date("Y-m-d")) { echo '
‘;
// echo ‘‘;
echo ‘

‘;
printf(‘

%d月

‘, substr($row[“ymd”],5,2));
printf(‘

%d

‘, substr($row[“ymd”],8,2));
$sdt = strtotime(substr($row[“ymd”],0,10));
printf(‘

%s

‘, $yobi[date(“w”, $sdt)]);
printf(‘

%d

‘, $g_y);
echo ‘

‘;
// echo ‘
‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
// echo ‘

‘;

$setsu = $row[“post_content”];
$setsu .= ‘【’;
preg_match(“/【公演名】(.+?)【/su”, $setsu, $rkoen);
preg_match(“/【出演】(.+?)【/su”, $setsu, $rshutsu);
preg_match(“/【2set制】(.+?)【/su”, $setsu, $r2set);
preg_match(“/【開場】(.+?)【/su”, $setsu, $rkaijo);
preg_match(“/【料金】(.+?)【/su”, $setsu, $rryokin);
preg_match(“/【コメント】(.+?)【/su”, $setsu, $rcom);
preg_match(“/【演奏予定曲】(.+?)【/su”, $setsu, $rkyoku);
printf(‘%s%s‘, $rkoen[1], $row[“venue”]);
printf(‘

%s

‘, $rshutsu[1]);
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
}
}
}
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;

mysql_free_result($result);
mysql_close($link);

?>

タイトルとURLをコピーしました