Index: trunk/install/php/selectcaptureimage.php =================================================================== --- trunk/install/php/selectcaptureimage.php (リビジョン 94) +++ trunk/install/php/selectcaptureimage.php (リビジョン 126) @@ -59,5 +59,4 @@ } - $query = " SELECT @@ -74,18 +73,39 @@ 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 = ? - - "; -// $rs = m_query($con, $query, "DBクエリに失敗しました"); +AND foltia_subtitle.pid = ? +"; $rs = sql_query($con, $query, "DBクエリに失敗しました",array($pid)); $rowdata = $rs->fetch(); + if (! $rowdata) { - print "
キャプチャ画像
-
-録画記録がありません。
+$query = "
+SELECT
+foltia_program.tid,
+foltia_program.tid,
+foltia_program.title,
+foltia_subtitle.countno,
+foltia_subtitle.subtitle,
+foltia_subtitle.startdatetime ,
+foltia_subtitle.lengthmin ,
+foltia_subtitle.pid ,
+foltia_subtitle.m2pfilename ,
+foltia_subtitle.pspfilename
+FROM foltia_subtitle , foltia_program
+WHERE foltia_program.tid = foltia_subtitle.tid
+AND foltia_subtitle.pid = ?
";
-}else{
+$rs = sql_query($con, $query, "DBクエリに失敗しました",array($pid));
+$rowdata = $rs->fetch();
+ if (! $rowdata) {
+ print "
キャプチャ画像
+
+ 録画記録がありません。