Current location: Hot Scripts Forums » Other Discussions » Database » case sensitive search with MATCH AGAINST along with ID


case sensitive search with MATCH AGAINST along with ID

Reply
  #1 (permalink)  
Old 10-27-09, 12:17 PM
tooletime tooletime is offline
New Member
 
Join Date: Oct 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
case sensitive search with MATCH AGAINST along with ID

case sensitive search with MATCH AGAINST along with ID

Here is my sql:
PHP Code:

$filterstr sqlstr($filter);
  if (!
$wholeonly && isset($wholeonly) && $filterstr!=''$filterstr "%" .$filterstr ."%";
  
$sql "SELECT COUNT(*) FROM `description`";
  if (isset(
$filterstr) && $filterstr!='' && isset($filterfield) && $filterfield!='') {
    
$sql .= " where " .sqlstr($filterfield) ." like '" .$filterstr ."'";
  } elseif (isset(
$filterstr) && $filterstr!='') {
    
$sql .= " where  MATCH (ID , SERIES_NUM ,TITLE,DESCRIPTION,CATEGORY,`TYPE`,VERSION,MEDIA_TYPE,PLATFORM,DATE,FILENAME) AGAINST ('+$filterstr -$filterstr' IN BOOLEAN MODE); ";
  }
  
$res mysql_query($sql$conn) or die(mysql_error());
  
$row mysql_fetch_assoc($res);
  
reset($row);
  return 
current($row); 
If i REMOVE ID from the MATCH...case sensitivity goes away. if i put it back in, case sensitivity comes back...how can i get around this? I need to search the ID as well without case sensitivity.

Im using MySQL 5.1.36

Last edited by Nico; 11-07-09 at 05:26 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 11-03-09, 11:50 AM
carters-site's Avatar
carters-site carters-site is offline
Wannabe Coder
 
Join Date: Sep 2009
Location: Moline, IL
Posts: 100
Thanks: 2
Thanked 1 Time in 1 Post
Can you do a show create table on the description table and post it?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks

Tags
case, mysql, sensitivity


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] problem with if statement NationVoice PHP 10 04-17-08 12:34 PM
conversion of a keypad code to the responding characters davids5a C/C++ 0 08-03-07 03:08 AM
Help cmottershead ASP.NET 3 11-15-04 01:10 AM
Declared Functions skipper23 PHP 4 12-17-03 11:06 AM
index page not showing up skipper23 PHP 3 12-15-03 02:10 PM


All times are GMT -5. The time now is 08:51 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.