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 10-25-2010, 03:27 PM PHP & Search
Red_X_'s Avatar
Extreme Talker

Posts: 158
Location: Houston
Trades: 0
What is the best way about going about building a on base search? (just search my site for content without using Google integrated search options)

I've seen using LIKE in queries, and wildcards.

But my direct question is, how do you go about it? Should I search all tables? Or certain tables?
__________________
"Good News Everyone, by reading this your hearing my voice."
Red_X_ is offline
Reply With Quote
View Public Profile Visit Red_X_'s homepage!
 
 
Register now for full access!
Old 10-25-2010, 03:28 PM Re: PHP & Search
Justinwiz's Avatar
Skilled Talker

Posts: 58
Name: Justin
Location: /etc/httpd/logs/error_log
Trades: 0
Quote:
Originally Posted by Red_X_ View Post
What is the best way about going about building a on base search? (just search my site for content without using Google integrated search options)

I've seen using LIKE in queries, and wildcards.

But my direct question is, how do you go about it? Should I search all tables? Or certain tables?
What are you trying to do exactly?
__________________
█ Reliable VPS and Minecraft server hosting at extremely affordable prices.

Please login or register to view this content. Registration is FREE
Justinwiz is offline
Reply With Quote
View Public Profile
 
Old 10-25-2010, 03:53 PM Re: PHP & Search
Red_X_'s Avatar
Extreme Talker

Posts: 158
Location: Houston
Trades: 0
The site has multiple companies, based in multiple categories, and sub-categories, and countrys.

I want a user to be to say search for general query "aircraft company" and find all company LIKE the name aircraft company?
__________________
"Good News Everyone, by reading this your hearing my voice."
Red_X_ is offline
Reply With Quote
View Public Profile Visit Red_X_'s homepage!
 
Old 10-26-2010, 05:16 AM Re: PHP & Search
Novice Talker

Posts: 5
Name: Sieger
Trades: 0
What about Sphider (http://www.sphider.eu/). It will automatically create an index of your site without too much coding.
__________________

Please login or register to view this content. Registration is FREE
sieger82 is offline
Reply With Quote
View Public Profile
 
Old 10-26-2010, 12:56 PM Re: PHP & Search
reli4nt's Avatar
Extreme Talker

Posts: 168
Location: New York
Trades: 0
I have heard good things about sphider though I have never used it.

If you are using a LIKE query then you only want to return relevant data, data the user has permission to see and data that you want them to see
  • so only check the table where you have the data they seek such as company names, company descriptions, article content, etc.
  • weed out any content that is inactive or unpublished (if that is an option)
  • and if some content should not be searchable, consider adding a field called 'searchable' which would hold a value of 1, or 0 (on or off) so these can easily be avoided.
__________________

Please login or register to view this content. Registration is FREE

Designing the world we live in.
Defining the terms we live by.
reli4nt is offline
Reply With Quote
View Public Profile Visit reli4nt's homepage!
 
Reply     « Reply to PHP & Search
 

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.15578 seconds with 12 queries