Hello
I am trying to set a text field with an autocomplete query validation which should display a list of possible results after 3 characters, and ideally the list should decrease as long as the user enters other characters.
I tried
Code:
SELECT COUNT(*) as count FROM `code_NAF_APE` WHERE (`Code` LIKE '[value]') OR (`Description` LIKE '[value]') OR (`Section` LIKE '[value]') OR (`Description section` LIKE '[value]');
but it only returns the number of rows
then I tried
Code:
SELECT * FROM `code_NAF_APE` WHERE (`Code` LIKE '[value]') OR (`Description` LIKE '[value]') OR (`Section` LIKE '[value]') OR (`Description section` LIKE '[value]');
but it would only return something when the full information is retrieved and not all the rows starting with the typed input.
Can you tell me what I miss here ?
As this is a huge table of NAF codes for companies, I cannot use a query field which would display all the results