6-2 Homework

6-2 Homework

Upload and download large jobs

Friends, after mastering php image processing, paging and other related operations, let's follow the teacher's steps and use the knowledge to make a page of our own for uploading pictures!

    Topic requirements:

      According to the given demo, improve uploading pictures, page display, search, and pagination. You can modify the page display effect according to your personal preferences, but you must implement the functions of uploading pictures, page display, search, and paging.

Students can watch the demonstration video below, there are demonstrations of specific functions!

 
mission details

mission details:

1. Language and environment

Implementation language: php language

Environment requirements and development tools: wamp, phpstudy or other integrated development environments, sublime, phpstorm or other editors

 

Second, the overall requirements of the program

1. Divide functional modules, and complete uploading pictures, page display, searching picture descriptions, and paging functions according to the requirements of the topic

2. The thinking is clear, the code written should be clear, neat and easy to understand

3. The function implementation should be logical and rigorous, and the judgment should be sufficiently reasonable

4. The code format and naming should be standardized and tidy, with strong readability

5. The operation effect of the program is required to be consistent with the page renderings provided, the structure is consistent, and the text size and color are not uniform.

6. Form the job into a compressed file and submit it

 

Three, thinking analysis:

      Through the demonstration video provided above, it is easy to analyze the solution to this question. What we need to complete is the four functions of uploading pictures:

 

Create the database :

Main content: Create fields that match the code.

Requirement: The field properties match the reality.

 

Upload image :

Main content: You can add a watermark when uploading a picture, modify the size of the picture, and save the picture-related information to the database

Requirements: Add a watermark to the picture, when modifying the size, pay attention to the type of the picture

 

Page display :

Main content: Take out the data in the database and display it on the page

Requirement: The content is required to be displayed in reverse order when displayed

 

Search image description :

Main content: Receive the keywords searched in the form, query the matching content in the database, and display it on the page

Requirements: Pay attention to the function of paging when searching~

 

Pagination :

Main content: Get the current page number and allocate data according to the number of pages

Requirements: count the total number of pictures, set nine pictures per page

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325159856&siteId=291194637
6-2