//ini_set('display_errors', true); require_once("Pager/Pager.php"); require_once("../lib/toodb.php"); $connect_option = array( 'dbname' => 'homesaga_db', 'server' => 'localhost:3306', 'user' => 'home', 'pass' => '49870429', 'charset' => 'utf8' ); $db = new TooDb($connect_option); $db->connect(); // 全件数 $c = $db->getOneValue("SELECT count(*) FROM 09photo_02_tbl"); // 1ページの表示件数 $disp = 20; $options = array( "totalItems" => $c, "perPage" => $disp, "delta" => 10, "altFirst" => "最初のページへ", "altPrev" => "前のページへ", "altNext" => "次のページへ", "altLast" => "最後のページへ", "separator" => "|", "lastPageText" => "LAST", "firstPageText" => "FIRST" ); $pager = &Pager::factory($options); $navi = $pager->getLinks(); if ($_GET[pageID]) { if (!preg_match("/^[0-9]+$/", $_GET[pageID])) { print "Error!!"; exit; } $limit = ($_GET[pageID]-1) * $disp; } else { $limit = 0; } $TITLE = "チャリティーライブ2009『HOME』当日(1)"; $CSS = "photo.css"; ?> include_once("../include/header.inc") ?>