チェンジセット 94: trunk/install/php/folcast.php
- コミット日時:
- 2010/02/28 22:28:26 (15 年前)
- ファイル:
凡例:
- 変更無し
- 追加
- 削除
- 更新
- コピー
- 移動
trunk/install/php/folcast.php
r70 r94 51 51 $query = " 52 52 SELECT foltia_program.tid,foltia_program.title, 53 foltia_subtitle.countno , foltia_subtitle.subtitle , foltia_subtitle.startdatetime, foltia_subtitle.pspfilename,foltia_subtitle.lengthmin,foltia_subtitle.enddatetime FROM foltia_subtitle , foltia_program WHERE \"pspfilename\" ~~'M%%' AND foltia_program.tid = foltia_subtitle.tid AND foltia_program.tid = $tid53 foltia_subtitle.countno , foltia_subtitle.subtitle , foltia_subtitle.startdatetime, foltia_subtitle.pspfilename,foltia_subtitle.lengthmin,foltia_subtitle.enddatetime FROM foltia_subtitle , foltia_program WHERE \"pspfilename\" LIKE 'M%%' AND foltia_program.tid = foltia_subtitle.tid AND foltia_program.tid = $tid 54 54 ORDER BY \"enddatetime\" DESC 55 55 offset 0 limit $max … … 59 59 SELECT foltia_program.tid,foltia_program.title 60 60 FROM foltia_program 61 WHERE foltia_program.tid = $tid61 WHERE foltia_program.tid = ? 62 62 "; 63 $titlers = m_query($con, $query, "DBクエリに失敗しました"); 64 $rowdata = pg_fetch_row($titlers, 0); 63 // $titlers = m_query($con, $query, "DBクエリに失敗しました"); 64 $titlers = sql_query($con, $query, "DBクエリに失敗しました",array($tid)); 65 $rowdata = $titlers->fetch(); 65 66 $rsstitle = $rowdata[1]; 66 67 }else{ … … 68 69 $query = " 69 70 SELECT foltia_program.tid,foltia_program.title, 70 foltia_subtitle.countno , foltia_subtitle.subtitle , foltia_subtitle.startdatetime, foltia_subtitle.pspfilename,foltia_subtitle.lengthmin,foltia_subtitle.enddatetime FROM foltia_subtitle , foltia_program WHERE \"pspfilename\" ~~'M%%' AND foltia_program.tid = foltia_subtitle.tid ORDER BY \"enddatetime\" DESC71 offset 0 limit $max71 foltia_subtitle.countno , foltia_subtitle.subtitle , foltia_subtitle.startdatetime, foltia_subtitle.pspfilename,foltia_subtitle.lengthmin,foltia_subtitle.enddatetime FROM foltia_subtitle , foltia_program WHERE \"pspfilename\" LIKE 'M%%' AND foltia_program.tid = foltia_subtitle.tid ORDER BY \"enddatetime\" DESC 72 offset 0 limit ? 72 73 "; 73 74 $rsstitle = "新規録画"; … … 96 97 print $header; 97 98 98 $rs = m_query($con, $query, "DBクエリに失敗しました"); 99 $maxrows = pg_num_rows($rs); 99 // $rs = m_query($con, $query, "DBクエリに失敗しました"); 100 $rs = sql_query($con, $query, "DBクエリに失敗しました",array($max)); 101 $rowdata = $rs->fetch(); 100 102 101 if ( $maxrows == 0) {103 if (! $rowdata) { 102 104 //die_exit("No items"); 103 105 }else{ 104 105 for ($row = 0; $row < $maxrows; $row++) { 106 $rowdata = pg_fetch_row($rs, $row); 107 106 do { 108 107 //$title = mb_convert_encoding($rowdata[1],"UTF-8", "EUC-JP"); 109 108 $tid = $rowdata[0]; … … 163 162 print $item ; 164 163 165 }//for 164 } while ($rowdata = $rs->fetch()); //do 166 165 167 166 }//if