rowCount()==0) { $sql = "insert into accesslog (type,id,day,`hour`,cnt) values(1,'$category',now(),HOUR(now()),1)"; db_query($sql); } $row = db_fetch1("select banner,top,name,parent_id from category where id=?",$category); if (!$row) { echo '(;_;)エラー'; return; } $category_image = $row['banner']; $category_name = $row['name']; $title = $row['name']; $category_parent = $row['parent_id']; //0:pc 1;同人 2;2ch 3:av switch($row[top]) { case 1: $dispmode="dojin"; $imagebase='dojin'; break; case 2: $dispmode="2ch"; $imagebase='2ch'; break; default: $imagebase='pc'; break; } } else { echo '(;_;)エラー'; return; $imagebase='pc'; } function escape($str) { global $dbh; return $dbh->quote($str); } $sqlbase="select * from goods where (num>0 or (zero!=1 and zero!=4))"; $sqlbase.=" and category=$category"; //if ($maker) $sqlbase.=" and maker=".escape($maker); //if ($flag1) $sqlbase.=" and flag1=".escape($flag1); $sql = $sqlbase . ' order by category,maker,id desc'; // echo $sql; $list = getlist2($sql); //通常 // $sql = $sqlbase . ' and osusume=0 order by category,maker'; $normal_list = getlist2($sql); $catelist = join(" > ",catelist2($category)); $basetype = base_type($category); include('header.html'); //view_title($category_name); if (1 /* $category_parent==1 || $category_parent==33 */) { $extra = << プリンタブル ノンプリンタブル カラー すべて --> END; } include('view3.html'); include('footer.html'); ?>