How should I start? Please advise

Source: Internet
Author: User
How should I start? I want to build a website, php,

The data table contains the information about the city, county, township, and village. The home page or home page of the village can display the introduction of the corresponding township or village, and the content added in the background. what is the data structure, are there any systems available for reference,
Thank you!


Reply to discussion (solution)

You can use dedecms to directly implement your functions.

This is the relationship between relatives. you can determine where the child belongs based on the parent id. this is basically enough. if you want to classify the child infinitely, set a path.

Education history humanities and social sciences natural science vocational skills TED speech film action 01 action 02 action 03 action 04 sci-fi 01 sci-fi 02 sci-fi 03 sci-fi 03 comedy 04 comedy 01 comedy 02 comedy 03 Idol terrorist war historical review of four famous TV soap opera costumes, Korean drama, old movie, and old movie, Variety Entertainment interview, financial, marriage, job hunting, talent show, fashion, and funny

This is the relationship between relatives. you can determine where the child belongs based on the parent id. this is basically enough. if you want to classify the child infinitely, set a path.
Plain Text code
?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Education
History and Humanities
Social science
Natural Sciences
Professional skills
TED speech
Movie
Action
Action 01
Action 02
Action 03
Action 04
Sci-Fi
Sci-Fi 01
Sci-Fi 02
Sci-Fi 03
Sci-Fi 04
Comedy
Comedy 01
Comedy 02
Comedy 03
Idol
Terror
War
TV
Soap opera
Costume drama
Korean drama
Old Golden festival film
Four famous books
Historical Review
Variety shows
Entertainment
Interview
Finance and Economics
Dating
Job Search
Talent show
Fashion
Funny

Please advise on the code

The code follows your data.
The code is available only when you provide the data organization method.

Id, pid, name, description according to what you have currently written, the data table has these fields. pid is the id at the upper level of the administrative region. for example, the village pid is the id of the preceding township, the pid of the township is in the upper-level county.

The home page displays the home information, and the home page displays the home information. This is too simple, right? You only need to use the id to retrieve the description of the corresponding record.

Unlimited classification tables, easy to achieve no pressure

Easy and simple...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.