[mythtv-users] mythweb fails when searching for "other showing of a program"

Bill Meek keemllib at gmail.com
Fri Dec 3 23:36:07 UTC 2010


On Fri, 2010-12-03 at 14:17 -0800, Oz Dror wrote:
> > $sh = $db->query($sql);
> > $channel_list = array();
> > while ($chanid = $sh->fetch_col()) {
> > echo(' chanid='.$chanid); <-------
> > $channel_list[] = $chanid;
> > }
> > var_dump($channel_list); <-------
> > Cache::set('[channelList]', $channel_list);
> > }
> >return $channel_list;
> 
> The return value is:
> 
>  array(0) { }

Bad result, but expected based on the failure.

Important: did you get hundreds of chanid= lines?

var_dump($channel_list); prints this for me:

 array(34) { [0]=> string(4) "1021" [1]=> string(4) "1051" ...

At: http://mythtv.pastebin.com/ArhBnH2e, I posted a copy of
var_dump($db); for you to compare to yours. Put it right
after the 1st line above ... query$(sql);

Do any of the mythweb pages work, like: mythweb/tv/list?





More information about the mythtv-users mailing list