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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T13:51:57+00:00 2026-05-24T13:51:57+00:00

I am having a text-box which is auto complete. When i enter the name

  • 0
  1. I am having a text-box which is auto complete.

  2. When i enter the name on the text-box the auto complete will work and provide the list from table.

  3. And when i click the save button the names which are entered in the text-box will inserted in a table. Until this, the process i working fine.

  4. My case is : Already existing users should not show in auto-complete.

Table Structure :

  1. Users Table

    uid, name

  2. work table

    wid, from_uid, to_uid,

How the mysql query should be.. Any help regarding this will be thankful and gratedful…

  • 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-24T13:51:58+00:00Added an answer on May 24, 2026 at 1:51 pm
    select name
      from users
     where name like 'Jo%'
       and uid not in (select to_uid
                         from work
                        where from_uid = 666)
    

    Supposing that user entered Jo substring and current user’s id is 666

    or another query that does the same (not sure which one will be more efficient in your particular case) but uses LEFT JOIN instead of subquery:

       select name
         from users u
    left join work w on w.from_uid = 666
                    and u.uid = w.to_uid
        where name like 'Jo%'
          and w.to_uid is null
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having a problem displaying data from a function to text box within a
Friends text box with autocomplete script (which supports multiple word completion from userstable fullname
I am having a Search text-box for which I have to implement a search
I am having issues with giving id to a text box in the aspx
I'm adding some text to the text box which is docked to window of
I am having a form which will be shown on leaving the control of
I have an html text box with some having class names as numbers <input
On my website I am having a text-box and I want to give it
I am having 3 input box, and i would like to dim the complete
i am using a Form where i am having a textbox which on submit

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.