database entry is in the supplied text?
| From: | JJ Harrison | Date: | Wed, 24 Jul 2002 08:55:11 +0000 |
| Subject: | database entry is in the supplied text? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-20743@lists.php.net to get a copy of this message | ||
Thanks for the replies so far.
I see which method is best in 5-10 min.
My question is that if SQL/mySQL support some sort of function to see if a
database entry is in the supplied text?
--
JJ Harrison
webmaster@tececo.com
www.tececo.com
"Jj Harrison" <webmaster@tececo.com> wrote in message
news:20020724081409.85593.qmail@pb1.pair.com...
> Here is my query(It is part of a search script and is dynamicly
generated):
>
> select 0 + article_keyword.weight * article_keyword.keyword like '%green%'
> as score, article_keyword.aid, article_data.name, article_data.time,
> article_data.description from article_keyword, article_data where score >
0
> and article_data.aid = article_keyword.aid group by article_data.aid order
> by score desc
>
> when I do the query in PHP I get a message saying: Unknown column 'score'
in
> 'where clause'.
>
> How can I fix this?
>
>
> --
> JJ Harrison
> webmaster@tececo.com
> www.tececo.com
>
>
>