Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 08-17-2006, 07:20 AM Search Problem
Average Talker

Posts: 21
Trades: 0

Hello,
I have problem in doing my search script,
I want to search more than one field in same table but with just one text box.
Does anyone here know how I can perform this search?
And if search result were so bit how can I slit the result to pages.
Thanks
__________________
Can you bet!
Please login or register to view this content. Registration is FREE
ottodo is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-17-2006, 10:15 AM Re: Search Problem
jito's Avatar
MY LIFE IS 'i' LIFE

Posts: 565
Name: surajit ray
Location: inside the heart of my friends
Trades: 0
just add another field named 'keyword' with your existing fields, which will contain the keywords for that column. this is the easiest way to solve your problem if i understand it properly.
jito is offline
Reply With Quote
View Public Profile
 
Old 08-17-2006, 09:01 PM Re: Search Problem
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
Code:
SELECT *, MATCH (field1, field2) AGAINST ("keyword") AS score FROM table_name WHERE MATCH (field1, field2) AGAINST ("keyword") ORDER BY score DESC
This works efficiently if the fields to be matched are fulltext indexed
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Search Problem
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11629 seconds with 12 queries