Home >Backend Development >PHP Tutorial >css - I want to use php to implement the function of a web page photo album, but there are several functions that I don't know how to implement. Please give me some advice!
Hello everyone, I am also a newbie now. I have passed an article on PHP on w3c. Now I want to make my own online photo album. There are two frames on the homepage. The above page is the album directory. Click on the page of the frame under the album directory. Just display all the photos in this album. In fact, it is relatively simple to make a static web page with html+css, but I feel that each album has to be created by itself. It is very troublesome to write html code. Now I want to use php, and there is a web page directly below. A .php will automatically search from the database or automatically write and generate html code to display the pictures of this album according to the name of the album clicked above. And some albums have many pictures. I hope to have a paging function, but I don’t know about this paging function. How to achieve it. It’s just this simple requirement. I wonder if anyone can help me solve it. Maybe I’m just a beginner and still need to learn.
A few more questions: 1. For example, I have two frames. How can I make the height of the lower frame automatically adapt? For example, if I click on the directory hyperlink above, the photos will be displayed below. The height of each photo is different, and the text will be displayed. The same is true, the text height is also different. How can I make the following frame automatically adapt to the height of the text? Oh, by the way, I used a big ifame to frame this frameset frame.
Hello everyone, I am also a newbie now. I have passed an article on PHP on w3c. Now I want to make my own online photo album. There are two frames on the homepage. The above page is the album directory. Click on the page of the frame under the album directory. Just display all the photos in this album. In fact, it is relatively simple to make a static web page with html+css, but I feel that each album has to be created by itself. It is very troublesome to write html code. Now I want to use php, and there is a web page directly below. A .php will automatically search from the database or automatically write and generate html code to display the pictures of this album according to the name of the album clicked above. And some albums have many pictures. I hope to have a paging function, but I don’t know about this paging function. How to achieve it. It’s just this simple requirement. I wonder if anyone can help me solve it. Maybe I’m just a beginner and still need to learn.
A few more questions: 1. For example, I have two frames. How can I make the height of the lower frame automatically adapt? For example, if I click on the directory hyperlink above, the photos will be displayed below. The height of each photo is different, and the text will be displayed. The same is true, the text height is also different. How can I make the following frame automatically adapt to the height of the text? Oh, by the way, I used a big ifame to frame this frameset frame.
Look for php video tutorials on the MOOC website for php pagination. There is a special video teaching how to paginate