Index: trunk/install/php/view_syabas.php =================================================================== --- trunk/install/php/view_syabas.php (リビジョン 86) +++ trunk/install/php/view_syabas.php (リビジョン 94) @@ -56,16 +56,12 @@ FROM foltia_subtitle , foltia_program ,foltia_station WHERE foltia_program.tid = foltia_subtitle.tid AND foltia_station.stationid = foltia_subtitle.stationid - AND foltia_subtitle.pid = '$pid' - - "; - $rs = m_query($con, $query, "DBクエリに失敗しました"); - -$rows = pg_num_rows($rs); -if ($rows == 0){ + AND foltia_subtitle.pid = ? "; +// $rs = m_query($con, $query, "DBクエリに失敗しました"); +$rs = sql_query($con, $query, "DBクエリに失敗しました",array($pid)); +$rowdata = $rs->fetch(); +if (! $rowdata) { print ""; exit; }else{ -$rowdata = pg_fetch_row($rs, 0); - $title = $rowdata[2]; $episode = $rowdata[3];