Total Users Online: 1





YW.ORG Database Search Engine Implented

News & Updates about this site.

YW.ORG Database Search Engine Implented

Postby yang » Mon Aug 04, 2008 8:59 pm

As you can see you can now search with our side panel search. In order to achieve good results, we used mysql full-text searching feature which is available in MySQL 4.0+. Very handy though I had to convert the phpBB post table into full search text so it went something like this:

Ran this mySQL query first
Code: Select all
ALTER TABLE phpbb_posts ADD FULLTEXT(post_text);


Then simply write the php search engine script for it. Simply create a new form with submission form code. The important part is to run this query to catch all the posts with matching keywords:

Code: Select all
$query = "select * from phpbb_posts where match(post_text) against ( '$keywords' )
  order by post_time";


I will provide the source code later on.
"To know, is to know that you know nothing. That is the meaning of true knowledge." - Confucius
"知之为知之,不知为不知,是知也。" - 孔子
User avatar
yang
The Big Kahuna
 
Posts: 67
Joined: Thu Jul 31, 2008 12:02 am
Location: Portland, OR

Re: YW.ORG Database Search Engine Implented

Postby yang » Mon Aug 04, 2008 8:59 pm

Reserved for search engine code
"To know, is to know that you know nothing. That is the meaning of true knowledge." - Confucius
"知之为知之,不知为不知,是知也。" - 孔子
User avatar
yang
The Big Kahuna
 
Posts: 67
Joined: Thu Jul 31, 2008 12:02 am
Location: Portland, OR


Return to Site News

Who is online

Users browsing this forum: No registered users and 0 guests

cron