iEntry 10th Anniversary Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > PHP

Reply
 
LinkBack Thread Tools
Old August 5th, 2008, 12:34 AM   #1
New Member
 

Join Date: Jul 2007
Location: India
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 shinesmithdas is on a distinguished road
Php search engine

Hi,

I need a php search engine option for a real estate website. If anybody know how to design that or any online tutorial is available for that pls let me know .

Thanks for advance,

Shinesmith
shinesmithdas is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old August 5th, 2008, 02:50 AM   #2
New Member
 

Join Date: Jun 2008
Location: India
Age: 25
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 alisha0512 is on a distinguished road
Re: Php search engine

you can search on google.
alisha0512 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old August 5th, 2008, 10:45 AM   #3
Elite Veteran
 

Join Date: Aug 2005
Location: That Place
Posts: 2,077
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Rep Altering Power: 0 moojoo will become famous soon enough moojoo will become famous soon enough
Re: Php search engine

Moved to PHP Forum.
__________________


Last edited by moojoo; August 5th, 2008 at 10:48 AM.. Reason: Moved to PHP Forum
moojoo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old August 6th, 2008, 05:47 AM   #4
Highly Reputable Member
SuperMember
 
unitedcraig's Avatar
 

Join Date: Oct 2007
Location: Stockport
Age: 18
Posts: 844
Blog Entries: 1
Thanks: 0
Thanked 1 Time in 1 Post
Rep Altering Power: 0 unitedcraig is on a distinguished road
Re: Php search engine

The easist way would be install a google search function on your site mate to be honest
unitedcraig is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old August 6th, 2008, 05:48 AM   #5
Highly Reputable Member
SuperMember
 
unitedcraig's Avatar
 

Join Date: Oct 2007
Location: Stockport
Age: 18
Posts: 844
Blog Entries: 1
Thanks: 0
Thanked 1 Time in 1 Post
Rep Altering Power: 0 unitedcraig is on a distinguished road
Re: Php search engine

Or, just had an idea.

Have you had any experience with Wordpress? If you design the site using wordpress as the basis of your site, all wordpress templates come with a search function included, that way you avoid the need for google branding on your site

http://wordpress.org/

Hope this helps

Craig
unitedcraig is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old August 6th, 2008, 06:32 AM   #6
Elite Veteran
 

Join Date: Jul 2007
Location: Webforumz 24/7
Age: 16
Posts: 3,802
Blog Entries: 9
Thanks: 2
Thanked 3 Times in 3 Posts
Rep Altering Power: 0 alexgeek is a name known to all alexgeek is a name known to all alexgeek is a name known to all alexgeek is a name known to all alexgeek is a name known to all alexgeek is a name known to all
Re: Php search engine

Here is a core class file for searching from my custom Blog, it may put you on the right track:
Code:
class search {
function 
searchFor($s) {
    global 
$blog;
    
$blog->connectDB;
    
$sql "SELECT * FROM $blog->blogtbl WHERE title LIKE '%$s%' OR entry LIKE '%$s%' ORDER BY id DESC";
    
$query mysql_query($sql) or die(mysql_error());
    
$row_sql mysql_fetch_assoc($query);
    
$total mysql_num_rows($query);
    
$this->total $total;
        if(
$total 0) {
        
$this->query $query;
        return 
true;
        } else
            {
        return 
false;
        }
    }
    function 
showBlogs() {
                while (
$row mysql_fetch_assoc($this->query)) {//echo out the results
                        
echo '<div class="blogentry">
                        
                        <h3 class="blogtitle"><strong><a href="/blog/'
$row['link'], '">'$row['title'], '</a></strong></h3> - <span class="date">'strftime('%d %b %Y'$row['timestamp']), '</span>
                        
                        <span class="category">'
$row['cat'], '</span>
                        
                        <p>'
strip_tags(substr($row['entry'], 0100)), '.....</p>'// change 100 to be how many characters you want
                        
                        
'</div><hr class="break" />';
            }
    }
    function 
totalBlogs() {
    return 
$this->total;
    }

alexgeek is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old August 6th, 2008, 09:24 AM   #7
Elite Veteran
 

Join Date: Aug 2005
Location: That Place
Posts: 2,077
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Rep Altering Power: 0 moojoo will become famous soon enough moojoo will become famous soon enough
Re: Php search engine

Textpattern ftw =P.

Code:
<txp:search_input section="search" button="Search" label="Search" />
Or fancy pants with rss_live_search and a custom form

Code:
<txp:rss_live_search label="Search: " inputsize="25" showbutton="1" buttonval="Search" searchto="search" excerpts="1" notfound="No matches were found." form="search_results" />
__________________


Last edited by moojoo; August 6th, 2008 at 09:27 AM..
moojoo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old August 10th, 2008, 01:19 AM   #8
New Member
 

Join Date: Jul 2007
Location: India
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 shinesmithdas is on a distinguished road
Re: Php search engine

Hi Friends,

Thank u very much for all of your advice. But i need the search engine like this http://www.halconrealestate.com/. this website have a search option in the left side . My client want this knid of one . If anybody know how to do this ls let me know . Thanks for advance .

Regards,

Shinesmith
shinesmithdas is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old August 11th, 2008, 09:30 AM   #9
Elite Veteran
 

Join Date: Aug 2005
Location: That Place
Posts: 2,077
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Rep Altering Power: 0 moojoo will become famous soon enough moojoo will become famous soon enough
Re: Php search engine

Basically that i sjust hitting the database with the values from the inputs. Pretty straight forward.
__________________

moojoo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Search engine help thewebkid Search Engine Optimization (SEO) 10 October 30th, 2007 10:19 AM
Search engine help icepick Search Engine Optimization (SEO) 12 May 18th, 2007 03:51 PM


Search Engine Optimization by vBSEO 3.2.0 RC8