Forum

Questions and discussions

search a entire or only a part of the word.

Script's setup and configuration

search a entire or only a part of the word.

Postby stockdiv » Thu Apr 03, 2014 6:22 pm

how to change the code, to search ONLY for a entire word?

/members/content_list_vars.php

//Fast query
$com2.=" (b.title like '%".$sch[$i]."%' or b.description like '%".$sch[$i]."%' or b.keywords like '%".$sch[$i]."%') ";
stockdiv
 
Posts: 119
Joined: Sat Feb 01, 2014 11:23 am

Re: search a entire or only a part of the word.

Postby admin » Sat Apr 19, 2014 3:00 pm

The code:

Code: Select all
$com2.=" (b.title rlike '[[:<:]]".$sch[$i]."[[:>:]]' or b.description rlike '[[:<:]]".$sch[$i]."[[:>:]]' or b.keywords rlike '[[:<:]]".$sch[$i]."[[:>:]]') ";
admin
Site Admin
 
Posts: 1458
Joined: Sun Mar 07, 2010 5:55 pm

Re: search a entire or only a part of the word.

Postby mj72 » Tue Feb 03, 2015 10:01 pm

Sorry, I can't find this code line in version 15.


Update:
Found it in content_list_vars.php:

viewtopic.php?f=21&t=1275&p=4284&hilit=search+entire+word#p4284
mj72
 
Posts: 53
Joined: Sat Jan 10, 2015 10:55 am


Return to Configuration

Who is online

Users browsing this forum: No registered users and 1 guest

  Photo Store Script

Professional php photo stock script and WordPress plug-in for photographers and video producers.

  Support
  CMSaccount Inc.