Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Need help with search function, again....  (Read 3731 times)

0 Members and 1 Guest are viewing this topic.

squid

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Need help with search function, again....
« on: April 12, 2006, 03:26:19 am »

Hey guys,

I am new to Coppermine, and so far I love it. I am into motorsports photography, and hope I can use the gallery as a selling feature on my website.

I have managed to get the search function to work, but with limitations. I have the images tagged by rider number, and if I do a search for lets say, 466, it works fine. If I do a search for 66, 466 comes up.

Is there any way to force the search to find only the exact search criteria entered?

Thanks on advance for all your help.

Emile Cooper.
« Last Edit: April 12, 2006, 03:59:27 am by Nibbler »
Logged

Nibbler

  • Guest
Re: Need help with search function.
« Reply #1 on: April 12, 2006, 03:30:27 am »

Edit include/search.inc.php, find

Code: [Select]
if (in_array($param, $allowed))$fields[] = "$param LIKE '%$word%'";
change to

Code: [Select]
if (in_array($param, $allowed))$fields[] = "$param = '$word'";
Logged

squid

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Need help with search function.
« Reply #2 on: April 12, 2006, 03:40:27 am »

Thanks Nibbler

Worked perfectly.

Now for my next question.

Is there a way to set up the search feature so I can search for say, 466 and pick an event (album)?
Logged
Pages: [1]   Go Up
 

Page created in 0.014 seconds with 19 queries.