I have a PHP news site, for example, there are 100 news, and there is a homepage can list the 100 news.
Demand: Output a complete static HTML website, the site only the first 10 news content, and the first page only list these 10 news.
Ask God to help and provide solutions.
Reply to discussion (solution)
What work have you already done?
Try your best to do it first, then ask again if you have a problem. The scenario is not required for code.
As I said upstairs, you do it like a teacher is doing homework.
The plan is nothing more than the homepage echo10 a title, link to their respective pages, "more" link to a full list of 100 titles of the page, but also link to the specific page
Because you say is static, there is no database anything, what PHP can save
As for typesetting layout that's not PHP, it's html+css.
Database limit 10 out
I now all the background data is wrong, but will not output the entire site, the output of the entire site will be downloaded from the outside FTP.
What kind of work have you been sitting on and what help you need to get in the details? Otherwise you seem to have become party A to party B to decorate the work.
Start by yourself ...
That's a simple thing to ask.
Ask the specific encounter problem will not take the data will not output the page or the layout of what ...
Let me give you a solution:
"There are a few lessons in the old version of PHP100 to explain how to make a news system you build it ..."
Connect points!!!
It's OK to put 10 links on the homepage. Scatter Wow.
SELECT * from TB ORDER BY id DESC limit 10
I'm here to get points.
This is simple.
PHP as an explanatory language for embedding Web pages, directly on the page foreach.
Write dead 10 links to specific detail pages
So easy!!! More dry, less ask, ask also to ask a bit of technical content!!! This simple question doesn't go back to!!!!!.