Hello friends, I have one question

Hi friends,

I am a programmer, just beginner.

I want to create the page like http://www.craigslist.org/about/sites.
I have country and cities in database.The table only two columns country & cities.

I am not sure how and where to start to make my webpage something like the website I mentioned above.

Truly appreciate if someone can guide me and give me a simple code.

Millions of thanks advanced for your help.

Cheers,
Ko Ko

If you have the items in a MySQL database (for example), then you would:

[ol][li]Select all of the countries[/li]
[li]Loop through the found countries[/li]
[li]For each of the countries, select matching cities[/li]
[li]Display the cities for the matching country[/li][/ol]

Do you have any experience of working with databases in PHP? If not, I could post a few snippets and links to the manual that would hopefully get you started :slight_smile:

Hello jSherz,

Yes I can learn and do the coding you mentioned for db access and looping.
My problem is that I do not know how to format like that web page.
I want exactly as that webpage http://www.craigslist.org/about/sites.

Thank you.
Koko

Hi Friends,

Anyone can help my question ? Thank you.

If you’re new to HTML & CSS then I would recommend - for the time being - using a large table that has columns for each column you want on the page. Then it would be a case of having a larger font for the titles and then smaller font for the categories.

Hi jSherz,

I am more keen to learn HTML & CSS rather than old style table.
Would you mind to teach so that I can kick start this job? Thanks.

Best Regards,
Koko

This tutorial might help get you started:

http://webdesign.about.com/od/advancedcss/a/aa010107.htm

Sponsor our Newsletter | Privacy Policy | Terms of Service