New Search Engine


Posted on 16th Feb 2014 07:03 pm by admin

Hey everyone,

I have a ZIP Code Radius search engine already functional. it displays all of the ZIP codes within a specified mileage around a central ZIP code.

I have an auction site that the client wants the search engine to be able to search for items within a given mileage radius.

I.e. if a person wants to search for corn within 20 miles of the 12345 ZIP code, they want those auctions displayed.

What is the best way to do this?

Like I said I already have the ZIP Code radius search engine working... now I need to be able to searhc for a particular item within those ZIP Codes.

Everything is running from the same MySQL Database.

You can see the site at http://www.harvestauction.com

Under the 'Buy' Menu item you see the 'Search by ZIP' page which directs you to the ZIP Code Radius search.

The database is named 'harvestauction', the table in the DB which are used by the Zip Code Radius is 'zip_codes' and the fields are:

zipcode
latitude
longitude
city
state
country
type

The table with the auctions is: 'jos_bid_auctions'. And those fields are:

id
userid
title
shortdescription
description
picture
link_extern
initial_price
currency
BIN_price
auction_type
automatic
payment
shipment_info
shipment_price
start_date
end_date
closed_date
params
published
closed_offer
closed_by_admin
hits
modified
newmessages
winnerid
cat (category)
auction_nr
nr_items
featured
reserve_price
min_increase
extended_offer
payment_info

Would it be better to first search via ZIP code and then the item in question... or the item first and than the zip codes within the specific area?



I figured that either way... I need the following fields searched in the jos_bid_auctions:

shortdescription
description
cat

And the following fields searched in zipcode:

zipcode

Thank you

No comments posted yet

Your Answer:

Login to answer
111 Like 11 Dislike
Previous forums Next forums
Other forums

Confused with Loop
guys, i got confused with Looping...this is the case

I have 3 stocks, let say "Stock A&q

a function to check directory depth
I'm working on a php script to upload files in to a set directory.
the user can select to upload

Track downloads' status
Hello,

I need to make somehow, some system, to track whether downloads are completed or faile

MySql timezone
Code: $sql = "SELECT *, date_format(date, '%m/%d/%Y at %I:%i %p' )as date FROM comments WHERE t

problem with GROUP BY and ORDER BY
i usually use this query to display the last 10 entries from a sql table:

Code: $query = &quo

Undefined variable when using $_SERVER['PHP_SELF']
Hi guyz, please suggest me something...
On first.php I have one input field NAME, and on posting

FTP Programs
Here is a list of commonly suggested FTP Programs to use:

FileZilla
SmartFTP
CuteFTP

Preg_match unknown modifyer
Hello,

Im trying to write a little script for my forums i need to get the reply from my forum

Linkage between two scripts
Okay say I have this for a link in a script:

Code: <li><a href="#&q

javascript in php code causes page to display white
Hi All,

Odd one this, I've got the following code (below) which is a simple log in form. The

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash