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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T13:44:37+00:00 2026-05-20T13:44:37+00:00

I am trying to make search engine to match some specific letters from the

  • 0

I am trying to make search engine to match some specific letters from the end of the word I input in a search box, or the first few letters in the the beginning of a word, that I input in the search box.

So, I have a search engine, a MySql database containing a simple table ID and WORDS. When I hit search button, I want the result to display me the words in WORDS column, matching the end of the word I am searching. I want to be able to choose how many letters to match my search from some radio buttons or drop-down (1, 2, 3, 4) last letters.

  • 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-20T13:44:38+00:00Added an answer on May 20, 2026 at 1:44 pm

    You can do this with a database query using MySQL’s ‘LIKE’ operator

    SELECT words FROM your_table WHERE word LIKE 'foo%'
    

    for words beginning with ‘foo’ or

    SELECT words FROM your_table WHERE word LIKE '%foo'
    

    for ending with ‘foo’. The % is a wildcard, matching any other characters in the word.

    Use PHP’s substr function to make the string the right length and then add the % at the beginning or end depending on whether you want words ending or beginning with the characters.

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

Sidebar

Related Questions

I'm trying to make mini search engine for a site containing products. I've already
I am trying to make a search bar with a few feilds. Right now
so I am trying to make a simple search engine, that allows a user
I'm trying to make a detailed search engine for my web site. The keywords
I am trying to make a search box for an ecommerce website. The search
Having some issues with this search engine I am trying to put together. I'll
I am coding search engine using Zend Framework Lucene. I'm trying to make fuzzy
I have been trying to make this search engine for a MySQL database. Taking
I am trying to make a search engine and what i want is to
Hi I'm trying to make an app in which there's a search box, I've

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.