require("../topics.ini"); $db = new DB; $db->connect(); $sql = "SELECT COUNT(*) FROM topics WHERE keisai_0 = 1"; $result = $db->exec($sql); $arr = pg_fetch_row($result, 0); $num_more = $arr[0]; $sql = "SELECT * from topics where keisai_0 = 2 order by id desc"; $result = $db->exec($sql); $num_rows = pg_numrows($result); ?>