Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Narrowing Search Results
kvarnerexpress
post Dec 23 2005, 05:25 PM
Post #1


Super Member
*********

Group: Members
Posts: 407
Joined: 13-December 04
Member No.: 2,696



Hello everyone,
I need help in querying an image library, in which I set up two tables: one that contains info about the image (called images) and one that associates each image with a keyword, called keywords (this is a one-to-many relationship - an image can have up to 7 keywords). The keywords table has these fields kID (primary #), ImageID (the same from the images table), and Keyword. So it looks like:

kID GraphicID Keyword
1 1 woman
2 1 white
3 1 frown
4 2 man
5 2 black
6 2 smile

What is the best way to query the images and keywords table so that it narrows down users' search? For instance, if users type in a form two search words (search_k1 and search_k2), I would want only those records that equal BOTH these keywords to show up (instead of records that equal search_k1 AND records that equal search_k2 -- which is what I am getting now).
Thanks,
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Are You In Search Of Free Google Cash Program ?(10)
  2. What Kinda Stuff Do You Search For On Google?(10)
  3. Make Money Searching The Internet(0)
  4. Forget About 0.01 Per Click, Get 0.06 Per Search!(14)
  5. Does Duplicate Content Affects Search Engine Positions ?(1)
  6. How To Make A Search Form And Php Code?(10)
  7. How Long Does It Take To Get Listed In Search Engines(3)
  8. Get Paid For Searching The Internet!(4)
  9. Effective Search Over Web(0)
  10. Custom Search Engine For Website(8)
  11. Search For Video Files And Display Them(0)
  12. Speed Test Results For Free Web Hosting Services(11)
  13. Free Search Engine To Search Your Website(7)
  14. Windows Live Image Search(0)
  15. Secrets To Getting To The Top Of Google(45)
  1. Google Vs *other Search Engine*(37)
  2. Google Adsense Search Option Not Working(0)
  3. Spybot Search & Destroy(3)
  4. What Is The Best Screen Recorder?(5)
  5. New Search Engine! Similar To Google!~(10)
  6. Which is a better search engine?Google or Yahoo(63)
  7. Search Engine Optimization Tools(11)
  8. Php Search Engine Script For Mysql Database(11)
  9. Search Engine Blues!(9)
  10. The Search Engine At Blogger.com(2)
  11. The Definition Of Google Number [aka Googol](18)
  12. There Is A Bug In 'adsense For Search'(6)
  13. Totally Brand New Social Networking?(5)
  14. I Am Search For An Old Anime(3)
  15. Raw Results 10/15(0)


 



- Lo-Fi Version Time is now: 24th July 2008 - 06:51 AM