Author Topic: Seaching only in one database table  (Read 5170 times)

0 Members and 1 Guest are viewing this topic.

Offline Sun Zaza

  • Sr. Member
  • ****
  • Posts: 399
    • View Profile
Seaching only in one database table
« on: March 01, 2008, 08:02:46 PM »
Hi everybody,

How can I use the search function on my gallery to search only in the name of the images?

For example:

I want all the image which the word 'RONALDINHO' exist only in the image name.

Thank you in advance,
Cruxy

Offline regina

  • Newbie
  • *
  • Posts: 16
    • View Profile
Ynt: Seaching only in one database table
« Reply #1 on: March 02, 2008, 02:07:20 PM »
this is great idea.But i think it is diffucult to build this code..
maybe Vano Help us  :lol:

 :mrgreen:

Offline Sun Zaza

  • Sr. Member
  • ****
  • Posts: 399
    • View Profile
Re: Seaching only in one database table
« Reply #2 on: March 02, 2008, 02:08:38 PM »
V@no????

Offline regina

  • Newbie
  • *
  • Posts: 16
    • View Profile
Ynt: Re: Seaching only in one database table
« Reply #3 on: March 02, 2008, 02:09:43 PM »

Offline nobby

  • 4images Guru
  • *******
  • Posts: 2.873
    • View Profile
Re: Seaching only in one database table
« Reply #4 on: March 02, 2008, 02:17:37 PM »
V@no was most recently (last visit: November 03, 2006, 11:56:03) online ...

Offline Sun Zaza

  • Sr. Member
  • ****
  • Posts: 399
    • View Profile
Re: Ynt: Seaching only in one database table
« Reply #5 on: March 05, 2008, 02:45:00 PM »
this is great idea.But i think it is diffucult to build this code..
maybe Vano Help us  :lol:

 :mrgreen:

I don't think so. Nothing is difficult in php.

I believe that we have to make a query in search.php (search_player like search_keywords) to look only in the image_player database or field :idea:

And then you use this:

http://www.website.com/search.php?search_player=ronaldinho

Can anyone do that please?

As you see, more users want to have that  :wink: