|
|
 |
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
|
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
|
|
|
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
|
Re: Php search engine
you can search on google.
|
|
|
August 5th, 2008, 10:45 AM
|
#3
|
|
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,077
Thanks: 0
Thanked 37 Times in 37 Posts
Rep Altering Power: 0
|
Re: Php search engine
Last edited by moojoo; August 5th, 2008 at 10:48 AM..
Reason: Moved to PHP Forum
|
|
|
August 6th, 2008, 05:47 AM
|
#4
|
|
Highly Reputable Member
SuperMember
Join Date: Oct 2007
Location: Stockport
Age: 18
Posts: 844
Thanks: 0
Thanked 1 Time in 1 Post
Rep Altering Power: 0
|
Re: Php search engine
The easist way would be install a google search function on your site mate to be honest
|
|
|
August 6th, 2008, 05:48 AM
|
#5
|
|
Highly Reputable Member
SuperMember
Join Date: Oct 2007
Location: Stockport
Age: 18
Posts: 844
Thanks: 0
Thanked 1 Time in 1 Post
Rep Altering Power: 0
|
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
|
|
|
August 6th, 2008, 06:32 AM
|
#6
|
|
Elite Veteran
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 16
Posts: 3,802
Thanks: 2
Thanked 3 Times in 3 Posts
|
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'], 0, 100)), '.....</p>', // change 100 to be how many characters you want '</div><hr class="break" />'; } } function totalBlogs() { return $this->total; } }
|
|
|
August 6th, 2008, 09:24 AM
|
#7
|
|
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,077
Thanks: 0
Thanked 37 Times in 37 Posts
Rep Altering Power: 0
|
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..
|
|
|
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
|
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
|
|
|
August 11th, 2008, 09:30 AM
|
#9
|
|
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,077
Thanks: 0
Thanked 37 Times in 37 Posts
Rep Altering Power: 0
|
Re: Php search engine
Basically that i sjust hitting the database with the values from the inputs. Pretty straight forward.
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
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 |
|