[100] how PHP outputs the site

Source: Internet
Author: User
[100] I have a PHP news website about how PHP outputs the site. for example, there are 100 pieces of news, and a home page can list the 100 pieces of news.
Requirement: Outputs a complete static HTML website. The website only contains the first 10 news, and the homepage only lists the 10 News.

Please help me to provide a solution.


Reply to discussion (solution)

What have you done?
Try your best first, and then ask again when you have any questions. The solution is not required for code.

As said upstairs, you do this as if the teacher is arranging homework.
The solution is nothing more than the echo10 titles on the homepage, which are linked to their respective web pages. "More" is linked to a page listing all 100 titles, which is also a specific page.
Because you said it was static, and there was no database, you can save any php.

As for typographical layout, it is not about php, but about html + css.

Database limit 10

All the data in the background is wrong, but the whole website is not output. the output website is downloaded by the FTP.

For more information about what job you have taken and what help you need, see. Otherwise, you seem to have become party A to assign work to Party B ..

Do it yourself...

What makes such a simple question?
If you have any problems, you will not retrieve the data, output the page, or typeset the page...

I will give you a solution:
The old version of PHP100 has several courses to explain in detail how to create a news system ...]

Split points !!!

Just put ten links on the home page. Split.

Select * from tb order by id desc limit 10

I am here to get the score

This is simple.

As an explanatory language for embedding a web page, php simply goes to the page foreach.

Write ten links to detailed pages

So easy !!! Do more, ask less, and ask more technical questions !!! This is a simple problem !!!!!

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.