Mercurial > epgrec.yaz
comparison getepg.php @ 39:8965ef108821
change: modify all scripts for web base setting.
author | Sushi-k <epgrec@park.mda.or.jp> |
---|---|
date | Tue, 28 Jul 2009 11:50:04 +0900 |
parents | e5f9aa34d06f |
children | 4def2b564161 |
comparison
equal
deleted
inserted
replaced
38:2bc96d657ba1 | 39:8965ef108821 |
---|---|
86 try { | 86 try { |
87 // チャンネルデータを探す | 87 // チャンネルデータを探す |
88 $num = DBRecord::countRecords( CHANNEL_TBL , "WHERE channel_disc = '" . $disc ."'" ); | 88 $num = DBRecord::countRecords( CHANNEL_TBL , "WHERE channel_disc = '" . $disc ."'" ); |
89 if( $num == 0 ) { | 89 if( $num == 0 ) { |
90 // チャンネルデータがないなら新規作成 | 90 // チャンネルデータがないなら新規作成 |
91 $rec = new DBRecord( CHANNEL_TBL ); | 91 $rec = new DBRecord( CHANNEL_TBL ); |
92 $rec->type = $type; | 92 $rec->type = $type; |
93 $rec->channel = $map["$disc"]; | 93 $rec->channel = $map["$disc"]; |
94 $rec->channel_disc = $disc; | 94 $rec->channel_disc = $disc; |
95 $rec->name = $ch->{'display-name'}; | 95 $rec->name = $ch->{'display-name'}; |
96 } | 96 } |