- Impact
- 18
here is my mysql code:
How come this dosen't work? I apparantly have a fulltext index on those 3 fields.
I have 1 entry in my db, that is "Casino Tropez". Supposedly, if you were to type in "Casino" it should pick up "Casino Tropez" in the name field, right?
It dosen't
Fulltext search page - www.theshutter.co.uk/poordoggie/search/index.php
"Like" search page - www.theshutter.co.uk/poordoggie/search/indexlike.php
Type "casino tropez" into them both. The like one will work, and the other one wont!
MAKE SURE YOU SELECT "BOTH" INSTEAD OF "UK" OR "USA". I DON'T HAVE THE COUNTRIES LOADED YET...
If I use the query:
and type "casino tropez" into the search bar it will find "Casino Tropez", but any squiffy searches won't come out, and it won't search each individual word either.
Can anyone help me, please!
Thanks
Tom
Code:
SELECT * FROM pd_shops WHERE MATCH (name, description, keywords) AGAINST ('$q')
How come this dosen't work? I apparantly have a fulltext index on those 3 fields.
I have 1 entry in my db, that is "Casino Tropez". Supposedly, if you were to type in "Casino" it should pick up "Casino Tropez" in the name field, right?
It dosen't
Fulltext search page - www.theshutter.co.uk/poordoggie/search/index.php
"Like" search page - www.theshutter.co.uk/poordoggie/search/indexlike.php
Type "casino tropez" into them both. The like one will work, and the other one wont!
If I use the query:
Code:
SELECT * FROM pd_shops WHERE name LIKE '$q'
Can anyone help me, please!
Thanks
Tom
Last edited:






