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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T01:12:09+00:00 2026-06-06T01:12:09+00:00

database name customdata jobNo CustomerName Country Tel Item 1 John USA 045 Mouse 2

  • 0

database name “customdata”

jobNo CustomerName Country     Tel    Item
1      John        USA         045     Mouse
2      Tony        Australia   054     laptop
3      Karuma      India       548     keyboard
4      Anton       Canada      854     Pen
5      Lusinda     Italy       758     Book

Don’t care about the database data.

I want add a one text field in php script. when type “I” it should automatically complete
dropdown list box like below

2,Tony,Australia,054,Laptop
3,Kumara,India,548,keyboard
5,Lusinda,Italy,758,book

all rows which include with “I” letter.

In next step “In”

3,Kumara,India,548,keyboard

will remain and others will goes out.

I can try to autocomplete with jquery.
Some one please help me to select data from table and add into array

  • 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-06T01:12:10+00:00Added an answer on June 6, 2026 at 1:12 am

    How about this??

    For ‘i’

    SELECT * 
    FROM customdata
    WHERE CONCAT(CustomerName, ' ', Country,' ',Item) like '%i%';
    

    For ‘in’

    SELECT *
    FROM customdata
    WHERE CONCAT(CustomerName, ' ', Country,' ',Item) like '%In%';
    

    You just need to do changes in like '%in%'

    If you want case-sensitive search, use BINARY after WHERE statement.

    SELECT *
    FROM customdata
    WHERE BINARY CONCAT(CustomerName, ' ', Country,' ',Item) like '%In%';
    

    Demo

    NOTE : When you type in, you will get id=5 data aslo with id=3 as in is present
    in CustomerName Lus in da.

    Update 1

    In PHP code will be

    $mySearch = $_POST['mySearchHTMLVariable'];
    
    $query="SELECT * 
            FROM customdata
            WHERE CONCAT(CustomerName, ' ', Country,' ',Item) like '%$mySearch%'";
    

    Please do changes as per your requirement.

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

Sidebar

Related Questions

SELECT name FROM sys.databases -- this can list all database name in the server
I have a table in my database: Name | Element 1 2 1 3
I am trying to set the database name as the request input parameter from
I'm trying to get my mysql data in ASP.net MVC3. The mysql Database Name
What is the relation between two Oracle database terms name and SID ?
My database structure looks something like this: Person Id Name FieldA FieldB Phone Id
ALTER DATABASE [Database Name] SET ENABLE_BROKER; Does not respond, and works infinitely. SQL Agent
I have a database name "CUED" (sqlite Android)it have a table HELLO which contain
I use the database name in several places in my script, and I want
How do I query the database name in Oracle SQL Developer? I have tried

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.