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

  • Home
  • SEARCH
  • 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 8788147
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:05:45+00:00 2026-06-13T22:05:45+00:00

I have a PHP interface with a keyword search, working off a DB(MySQL) which

  • 0

I have a PHP interface with a keyword search, working off a DB(MySQL) which has a Keywords field.

The way in which the keywords field is set up is as follows, it is a varchar with all the words formatted as shown below…

the, there, theyre, their, thermal etc…

if i want to just return the exact word ‘the’ from the search how would this be achieved?

I have tried using 'the%' and '%the' in the PHP and it fails to work by not returning all of the rows where the keyword appears in.

is there a better (more accurate) way to go about this?

Thanks

  • 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-06-13T22:05:46+00:00Added an answer on June 13, 2026 at 10:05 pm

    If you want to select the rows that have exactly the keyword the:

    SELECT * FROM table WHERE keyword=’the’

    If you want to select the rows that have the keyword the anywhere in them:

    SELECT * FROM table WHERE keyword LIKE ‘%the%’

    If you want to select the rows that start with the keyword the:

    SELECT * FROM table WHERE keyword LIKE ‘the%’

    If you want to select the rows that end with the keyword the:

    SELECT * FROM table WHERE keyword LIKE ‘%the’

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

Sidebar

Related Questions

I have a LAMP (PHP) web app which need to interface with programs on
I have done extensive research about MySQL transactions via the PHP PDO interface. I
I have php code that puts some values into an Array as follows: $hunter=addslashes($MessageArray[1]);
I have php mysql application and i want the phone numbers be saved in
I have an interface in PHP interface IDummy{ public function DoSomething(); } I have
I have written some C/C++ extension modules for PHP, using the 'old fashioned way'
I have around 3000 SWF files, some are interactive which has lots of actionscripts
Hey, I'm quite experienced with PHP but I have no idea what the keyword
I want to have a web interface to control when to call a PHP
I have very simple php interface: interface HasFormattableNumber { function setNumber(); function setFormat(); function

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.