header("Content-type: text/html; charset=EUC_JP"); //$pgpath = "/2022/"; $pgpath = "/"; // ページタイトル取得 $headsql = "select pagetitle,oyaid from site where id = $id "; $headrs = pg_exec($db_con, $headsql); $num = pg_numrows($headrs); for($i = 0;$i < $num; $i++){ $pagetitle = pg_result($headrs,$i,"pagetitle"); $oyaid = pg_result($headrs,$i,"oyaid"); } ?>