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 6775463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:54:34+00:00 2026-05-26T15:54:34+00:00

I have a table sort of like this: TABLE BOOKS ID TITLE SUBTITLE ————————————

  • 0

I have a table sort of like this:

TABLE BOOKS
ID   TITLE             SUBTITLE
------------------------------------
1    Don't Forget      
2    Twenty/Twenty      How To Subtitle
3    Red Riding Hood    Another Subtitle
4    The Three Bears
5    The Threev Bears

MySQL is:

SELECT * FROM books WHERE MATCH (titl, subt) AGAINST ('+don\'t*' IN BOOLEAN MODE)

This Query is returning for me (in phpMyAdmin, I’m still not sure how to escape the apostrophe in PHP) the following:

   ID  TITLE
   -------------------------------
   1   Twenty/Twenty
   2   The Threev Bears

I’m not sure why I’m getting “The Threev Bears” and not “The Three Bears” too? Is “Three” an overlooked word?

Also why am I getting “Twenty/Twenty” but not “Don’t Forget”? That is the only result I want from this.

Thank you for your help!

  • 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-26T15:54:35+00:00Added an answer on May 26, 2026 at 3:54 pm

    You’ve got a few questions in here so let me try to address them.

    First, you are correct three is indeed an overlooked word. MySQL has, by default, a list of ignored or “stop” words which aren’t indexed. You can adjust this. The idea is to avoid cluttering your index with very common words that will return a large percentage of the results.

    To escape characters in PHP you should really be using parameterized queries or at the very least using msql_real_escape_string. Here’s a great SO post on the subject

    Finally, the reason you’re getting Twenty/Twenty, but not Don't forget is because Don't is also a stopword. TwentyTwenty is matching on the t* I believe.

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

Sidebar

Related Questions

I have a table I'd like to sort with a priority column. This column
I have a table sort of like this: Product Price Sale ------------------------ Watch 10.00
I have a table like this I'd like to sort : | Name |
I have a table like this: id products_name sort 1 abc 0 2 xyz
I have a SQLite query like this: SELECT Books.title, People.name FROM Books, People WHERE
I have a table containing a bunch of input fields, sort of like a
I have a table like this below. And there is a div container with
I have a table like this: | X | Y | Data | ----------------
I have a table like this: | Update | Name | Code | modification
I have a table, that looks like this: <table class=sortabletable> <thead> <tr> <th style=width:

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.