> If the keywords inputted from user are: "word2, word1", it
> will reture News1 twice:
That's because you are selecting all the records that match
each single key word individually.
> I want to search this table based on the Keywords. the code is:
> $split = explode(" ",$keywords);
> $Num = 0;
Hi, all:
Table News
__
NewsID | Keywords | News
---|---|--
1 |word1,word2| News1
---|-- |--
2 | word2| News2
__
I want to search this table based on the Keywords. the code is:
$split = explode(" ",$k
2 matches
Mail list logo