Webmaster Forum

Ezilon Directory   High Bandwidth Dedicated Servers   V7N Directory
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Reply
 
LinkBack Thread Tools Display Modes
Old 01-17-2008, 03:27 PM   #1 (permalink)
Junior Member
 
Join Date: 01-17-08
Posts: 2
iTrader: 0 / 0%
Latest Blog:
None

ronnyd8719 is liked by many
Searching towns

Hi I am new to the forum. I use HTML most of the time. I am learning PHP and MYSQL. Anyway I am trying to give a city name and it will give you cities or towns in a 50 mile area. Can this be done in anyway. I am willing to learn new code. Let me know the type of code and I will get the books. If you know good books to learn code let me know. I am trying to broaden my mine.
Thanks and nice forum
ronnyd8719 is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 01-18-2008, 01:20 AM   #2 (permalink)
Contributing Member
 
Join Date: 09-03-07
Location: England
Posts: 358
iTrader: 0 / 0%
Latest Blog:
None

Boogle is liked by somebodyBoogle is liked by somebodyBoogle is liked by somebodyBoogle is liked by somebodyBoogle is liked by somebody
didn't see this before the last one!

Yes that is easily doable, what you're asking. However i'm not a PHP'er but the general idea for the database would be to create it as if you were plotting the cities/towns on a graph- so each town/city would be distance x away from the origin. and grid out this graph so each city would go in a grid reference, just a numbered block really.
then if someone searched for a city in block B, you would select all cities/towns in block B and the ones which were less than 50 miles difference away from point o (the origin) you would spit out to the client.

That's just the general idea- it will need tweaking but i'm pretty sure that would work. Also if you're new to SQL you might to read this

HTH's

Boog's
__________________
Price is what you pay... Value is what you get.
Boogle is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



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

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

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


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 04:43 AM.
© Copyright 2008 V7 Inc


Search Engine Optimization by vBSEO 3.1.0 ©2007, Crawlability, Inc.