Index: trunk/install/php/delepgp.php =================================================================== --- trunk/install/php/delepgp.php (リビジョン 84) +++ trunk/install/php/delepgp.php (リビジョン 94) @@ -70,14 +70,13 @@ WHERE foltia_subtitle.tid = 0 AND foltia_station.stationid = foltia_subtitle.stationid AND -foltia_subtitle.pid = $pid +foltia_subtitle.pid = ? "; - $rs = m_query($con, $query, "DBクエリに失敗しました"); - $maxrows = pg_num_rows($rs); - - if ($maxrows == 0) { +// $rs = m_query($con, $query, "DBクエリに失敗しました"); + $rs = sql_query($con, $query, "DBクエリに失敗しました",array($pid)); +$rowdata = $rs->fetch(); +if (! $rowdate) { die_exit("登録番組がありません
"); } - $rowdata = pg_fetch_row($rs, 0); $pid = htmlspecialchars($rowdata[0]); @@ -114,6 +113,7 @@ DELETE FROM foltia_subtitle - WHERE foltia_subtitle.pid = $pid AND foltia_subtitle.tid = 0 "; - $rs = m_query($con, $query, "DBクエリに失敗しました"); + WHERE foltia_subtitle.pid = ? AND foltia_subtitle.tid = 0 "; +// $rs = m_query($con, $query, "DBクエリに失敗しました"); + $rs = sql_query($con, $query, "DBクエリに失敗しました",array($pid)); } }else{