STnavi 情報館 ver.2.12
F = datas/add-odoriko.php
2014-11-29 09:50:37 更新
INDEX
$encode = "UTF-8";
$title = "STnavi - 踊り子追加";
$thisprog = "add-odoriko.php";
$lastupdate = date("Y-m-d H:i", filemtime($thisprog));
$br = '
';
$dbhost = 'localhost';
$dbuser = 'stnavi';
$dbpass = 'cubie';
$dbname = 'stnavi';
print '';
print '';
print '';
print '' . $title . '';
print '';
print '';
print '';
print '' . $title . '
';
$step = getparam('step', 1);
$name = getparam('name', '');
$yomi = getparam('yomi', '');
$by = getparam('by', '');
$bm = getparam('bm', '');
$bd = getparam('bd', '');
$dy = getparam('dy', '');
$dm = getparam('dm', '');
$dd = getparam('dd', '');
$dbg = getparam('dbg', '');
$shoz = getparam('shoz', '');
$gen = getparam('gen', '');
$submit = getparam('submit', '');
if ($step == 2) {
if ($by) $by = substr('????' . $by, strlen($by), 4);
if ($bm) $bm = substr('00' . $bm, strlen($bm), 2);
if ($bd) $bd = substr('00' . $bd, strlen($bd), 2);
if ($dy) $dy = substr('????' . $dy, strlen($dy), 4);
if ($dm) $dm = substr('00' . $dm, strlen($dm), 2);
if ($dd) $dd = substr('00' . $dd, strlen($dd), 2);
print "Name = " . $name . $br;
print "YOMI = " . $yomi . $br;
print "誕生日 = " . $by . '-' . $bm . '-' . $bd . $br;
print "デビュー= " . $dy . '-' . $dm . '-' . $dd . $br;
print "デビュー劇場 = " . $dbg . $br;
print "所属 = " . $shoz . $br;
print "現役/引退 = " . $gen . $br . $br;
print '';
}
print '編集';
if ($step == 1) {
print '
';
print 'データベース読み出し情報';
print ' ページラストへ';
print ' 香盤情報検索';
print '
';
$dbtbl = 'odoriko';
$db = mysql_connect($dbhost, $dbuser, $dbpass);
if (!$db) die('データベースへの接続に失敗しました。' . mysql_error());
mysql_query('SET NAMES utf8' , $db);
$dbselect = mysql_select_db($dbname, $db);
if (!dbselect) die('データベースの選択に失敗しました。' . mysql_error());
$query = 'SELECT * FROM `' . $dbtbl . '`';
$result = mysql_query($query);
if (!$result) die('クエリー失敗。' . mysql_error());
$zsp = ' ';
$count = 0;
while ($row = mysql_fetch_assoc($result)) {
print $row['id'] . '.';
print $row['name'] . '(' . $row['yomi'] . ')';
print $row['birth-y'] . '-' . $row['birth-m'] . '-' . $row['birth-d'];
print '生 ';
print $row['debut-y'] . '-' . $row['debut-m'] . '-' . $row['debut-d'];
print 'デビュー(' . $row['debut-gekijo'] . ') ';
print '所属:' . $row['shozoku'] . ',';
print $row['gen'];
print $br;
$count++;
}
print '
以上、' . $count . '件のデータがありました。' . $br . $br;
mysql_close($db);
}
print '';
print ' ページトップへ';
print '
';
print $br;
print '';
print 'Copyright © ' . date('Y') . ' STrip NAVIgation. ';
print 'All Rights Reserved.';
print '';
print '';
function getparam($n, $d) {
$ret = $_POST[$n] ? $_POST[$n] : $d;
$ret = $_GET[$n] ? $_GET[$n] : $ret;
return $ret;
}
?>
Copyright ©2013-2025 Libra0977. All Rights Reserved. last updated 2014.8/25.Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)