Ok so the main problem is a poorly designed php script.. but I cant do any thing about that right now..
So I turn to you for some help! 🙂
I want to list all items that start with “a%”.. easy!.. well not here.. by default the search is made with wildcards “%string%”.
SELECT DISTINCT `Select2` FROM `items` WHERE `Select2` LIKE "%a%"
And I can´t change the search script… :/
Is there anyway that you can think of to get me around this problem?
There is no way to get around something hardcoded like that. But, since the results will include the results you are looking for, as well as substring matches, you can filter out the substring matches on the application side.