Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 350579
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T11:33:47+00:00 2026-05-12T11:33:47+00:00

I have the following script select c.id from .TBL_COUPONS. as c inner join .TBL_BUSINESS.

  • 0

I have the following script

select c.id 
from ".TBL_COUPONS." as c 
inner join ".TBL_BUSINESS." as b 
on c.business_id = b.business_id 
inner join ".TBL_BLOCATION." as l 
on c.business_id = l.business_id 
where 
(match(c.name) against ('$search') 
    or 
match (b.name,b.category,b.subcat) against ('$search')) 
and l.zip = '$zip'

why would this only return exact matches? For example, if i $search for locksmith nothing comes up.
but if i search for locksmiths I’d get two results. (both searches included $zip = ‘75061’)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T11:33:47+00:00Added an answer on May 12, 2026 at 11:33 am

    One way to do it is to replace the last few characters with a wild card and do the MATCH () AGAINST in boolean mode

    The search term “locksmith” should be changed in php to “locksmith*” and your code would be something like this

    match(c.name) against ('$search' IN BOOLEAN MODE) 
    

    For general purposes you should remove ‘s’, ‘ed’, ‘ing’, etc. from the words in the original search term and add the wild card * to the end.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following PHP script : <?php $all_threads=mysql_query(SELECT * FROM forum_threads WHERE category=$_GET[id]);
I have the following script : $queryUniqueEmail = SELECT email FROM Applicant WHERE email
I have the following string expression in a PowerShell script: select count(*) cnt from
I have the following query: SELECT script FROM d_stages WHERE id IN (SELECT g.stage
I have a following bash script: 1 #!/bin/bash 2 query='query= SELECT * WHERE {
I am using SQL Server 2008 and I have the following SQL script: Select
I have made the following search script but can only search one table column
i have the following script i am using to scrap data from my uni
I have the following script: SELECT left(SHI.FSOKEY, 6) AS [SoNo] , substring(SHI.FSOKEY, 7, 3)
I have the following script which is an order list: <?php $manifest_query = tep_db_query(SELECT

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.