For any one that is interested - solved this problem using the strrchar and substr_replace methods. The code can be found below:
$searchString = $_POST['searchString'];
// take into account case sensitivity
$endLetterLC = strrchr($searchString, 's');
$endLetterUC = strrchr($searchString...
Hi - sorry to be a bit vague.
The idea is that I want to be able to type in "mints" into the search field.
The variable then gets passed into the SQL query and it brings up all products that have mint in the title.
Many Thanks
Hi,
I am trying to get PHP to search my mySQL database. Everything is fine at the moment except for the query is not searching for singular items. For example if you type in mint it comes up with everything with mint in it but if mints is typed in it does not bring up everything with mint!
I...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.