NaN:NaN
NaN:NaN
--:-- / --:--
Newgrounds Background Image Theme

Qwertyzxc1488 just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

MySQL fulltext searching

656 Views | 2 Replies
New Topic Respond to this Topic

I'm trying to build a search engine for my site, but I've struck a problem with my query, anyone know what's wrong with it?

SELECT *
MATCH(title, description)
AGAINST ('$search') AS score FROM videos
WHERE MATCH(title,description)
AGAINST ('$search') ORDER BY score DESC

Response to MySQL fulltext searching Mar 30, 2007


SELECT *,
MATCH(title, description)
AGAINST ('$search') AS score FROM videos
WHERE MATCH(title,description)
AGAINST ('$search') ORDER BY score DESC

maybe? If you could give me a small sample of your DB I'd be able to test some more, but I think all you're missing is that comma :)


"My software never has bugs. It just develops random features. " - Unknown

[ FluxBB developer | Quickmarks 0.5.1 | Strings & Ints - my blog ]

BBS Signature

Response to MySQL fulltext searching Mar 30, 2007


Thanks, that solved it.