Solved

Simple Web Based Directory based on area

Posted on 2011-02-20
2
179 Views
Last Modified: 2012-05-11
I am looking for a Simple Web Based Directory based on area, then select a listing type and then display businesses with contact information.

select a city from a displayed dynamic list, example sunnyvale
select a category from a displayed dymanic list, example lawyers
then it would just list the layers in sunnyvale....

The lists can be in text file.

Please let me know if anyone has ideas...
0
Comment
Question by:tech-
2 Comments
 
LVL 11

Accepted Solution

by:
VanHackman earned 500 total points
ID: 34939701
Are you looking for examples about how to develop something like this or just a website similar to the one that you provided?

If you are looking for examples about how to develop a site similar here are the things that you will need to know.

You will need to know how to populate elements based on the option selected in some select, this something that in general is known like "dinamic lists", see the following example:

http://www.9lessons.info/2010/08/dynamic-dependent-select-box-using.html

There you could see how to populate a list based on the option selected in a differen list.

Well the login that you will need to use for developing a site like that is exactly the same...

In the example, you already have the part of how to know when a specific option is selected in the select box, and how to query the DB according to the value of that select.

The single difference will be that, instead of populating another select like in the example, you will need to populate a whole sectin of your site, say a "div".

So, it's very simple:

1 - Create the DB part.
2 - Create a Php script that given an specific variable, returns the table for the related elements.
3 - Use the example above to dynamicaly query the script from point number 2 and load the resulting table in a specific div.

For the point number 3, all that you will need to know is:

http://api.jquery.com/load/

Hope this help,
VanHackman!
0
 
LVL 109

Expert Comment

by:Ray Paseur
ID: 34944869
This application has kind of "been done" already.  http://www.yellowpages.com/

The general design that people use to access this sort of information is to make a plain-text search.  The linked select lists went out of style with web 1.0.
http://lmgtfy.com?q=Lawyers+in+Sunnyvale
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
The viewer will learn how to dynamically set the form action using jQuery.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question