RE: [PHP] Help needed - search problem

2001-03-15 Thread Boget, Chris
> 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;

[PHP] Help needed - search problem

2001-03-15 Thread Fang Li
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