문제

I want to impliment tagging system in my PHP project (same like Stackoverflow.com's tagging system). Can I use Lucene? If yes then how to use it in PHP.
Or is there any other jQuery plugin available? Please let me know.

Thanks in advance

도움이 되었습니까?

해결책

You can create a new field in your table named "tags" and when you search on your site split the tags (lets say all the tags for each topic is separated by a ',') using split function in PHP with the character you used (in our case, comma (',')).

make a loop for each array of tags for each topic (nested loops) and search for a tag that is the same as you have searched.

hope i helped :)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top