View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 4 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Mon Jan 23, 2006 1:51 pm 
Offline
Joined: Sat Oct 15, 2005 10:52 pm
Posts: 33
I figured out that I can create new canned searches by modifying canned_searches.php. I'd like to search for movies on HBO channels only. I'm at a loss on how to do perform a search only on specific channels. I searched the forums and did not see anything on creating customized searches. Can someone either give me a hint or let me know where else to look? Is the database structure documented somewhere?

Thanks.

_________________
MSI K7N2GM2-LSR (Integrated Video)
Athlon XP 2800+
512M RAM
160GB WD
Hauppauge PVR-150


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 23, 2006 2:23 pm 
Offline
Joined: Sat Oct 15, 2005 10:52 pm
Posts: 33
I messed around some more and I can accomplish what I want by doing the following:

=> "category_type'".movie_word."' AND program.channid LIKE '1310' OR program.chanid LIKE '1311' OR program.chanid LIKE ...

I can just put a bunch of OR values in and accomplish what I want, but is there a better way?

Thanks.

_________________
MSI K7N2GM2-LSR (Integrated Video)
Athlon XP 2800+
512M RAM
160GB WD
Hauppauge PVR-150


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 23, 2006 2:56 pm 
Offline
Joined: Sun May 23, 2004 1:50 pm
Posts: 78
Location: Palmdale, CA
First, you typically want to avoid "LIKE" searches unless you're dealing with certain types of fields as they don't perform as well.

Try changing to:

Code:
"category_type'".movie_word."' AND program.chanid IN (1310,1311,1312,etc...)


Take out the etc... of course and replace with as many values as necessary.

It's easier to manage.


tomes wrote:
I messed around some more and I can accomplish what I want by doing the following:

=> "category_type'".movie_word."' AND program.channid LIKE '1310' OR program.chanid LIKE '1311' OR program.chanid LIKE ...

I can just put a bunch of OR values in and accomplish what I want, but is there a better way?

Thanks.
Code:


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 24, 2006 8:15 am 
Offline
Joined: Sat Oct 15, 2005 10:52 pm
Posts: 33
Thanks for the information. It's a much cleaner way to do what I wanted. I did need to put tick marks around each channel to make it work properly.

_________________
MSI K7N2GM2-LSR (Integrated Video)
Athlon XP 2800+
512M RAM
160GB WD
Hauppauge PVR-150


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 24 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu