-
I am having a text-box which is auto complete.
-
When i enter the name on the text-box the auto complete will work and provide the list from table.
-
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.
-
My case is : Already existing users should not show in auto-complete.
Table Structure :
-
Users Table
uid, name
-
work table
wid, from_uid, to_uid,
How the mysql query should be.. Any help regarding this will be thankful and gratedful…
Supposing that user entered
Josubstring and current user’s id is666or another query that does the same (not sure which one will be more efficient in your particular case) but uses
LEFT JOINinstead of subquery: