为博客编程.在这方面需要帮助 [英] programming a blog . need help in that

查看:58
本文介绍了为博客编程.在这方面需要帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!我叫苏米特!
我是程序员/设计师/计算机爱好者!
我正在为自己编写自己的博客! ,但是这个问题已经存在了一段时间,因为我试图解决它!
问题是!
问题是我想将旧的POSTS移至新页面,如

指向新页面的锚点,例如page2.php

我只希望每页10个帖子!我可以通过db处理帖子,但是如何将较旧的帖子转移到下一页??????

解决方案

仅显示特定日期内的帖子范围在首页上显示,而较旧的帖子显示在其他"页面上.没有涉及转移".当页面加载时,将确定将在第一页上显示的帖子.我看不出要想出这个概念有多么困难.在PHP中如何实现完全是另一回事.


hi all ! my name is sumit !
i am a programmer / designer / computer enthusiast !
i am programming my own blog my self ! , but am having this problem and its been a while since i tried to solve it !
the problem is that !
the problem is that i want to move older POSTS to a new page as in

an anchor that leads to a new page , e.g. page2.php

an i want only 10 posts per page ! i can handle the posts via db , but how to transfer older posts to the next page??????

解决方案

Only display posts that fall within a certain date range on the first page, and display older posts on the "other" page. there''s no "transferring" involved. The posts that would be displayed on the first page would be determined when the page loads. I don''t see how it''s that difficult to get your head around that concept. How you would do it in PHP is another matter completely.


这篇关于为博客编程.在这方面需要帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆