Nils Bettinger
unread,Sep 8, 2015, 6:09:05 AM9/8/15Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to lu...@googlegroups.com
Hi,
I've got a table with a field within which contains a comma-separated
tag-list (the project is a picture-galery). I want the User to search for
some pictures.
For example:
Database: picproject
table: pictures
field: tags
Value: tor,eingang,licht,lichtung
Another entry:
Database: picproject
table: pictures
field: tags
Value: monitor,bildschirm,anzeige,display
---
So if I do it very simple, I search for something like that:
SELECT * FROM `pictures` WHERE tags LIKE <cfqueryparam
value="#FSearchquery#" cfsqltype="CF_SQL_VARCHAR" maxlength="200">
---
If I search for "tor" I would get both entries mentioned above (tor /
monitor). How can I optimize the searching in general? Has someone a
resource/howto on the web where I can take a look to learn a bit? Thze next
step would be to search for more words and/or etc.
I would be pleased by any sugestions to make the search-function a bit more
sharpened and comfortable.
Best regards,
Nils