请帮助分页 [英] Help on pagination please

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

问题描述

我在一个名为functions.php的文件中使用了一个分页函数,如下所示

I have a pagination function I am using in a file called functions.php as below

展开 | 选择 | Wrap | 行号

推荐答案

I会忘记你的直接问题并重新设计整个事情。

你是一个自学成才的程序员吗?

我问,因为你已经开发了一种unorthordox风格。


每月肯定不需要一个功能。

正确的方法是一个功能,并将月份作为参数传递。


一个函数应该执行一个函数不能用作SQL PHP和HTML杂乱的转储


我可能会误判,因为我无法轻松阅读你的代码..

怎么做你设法把它全部放在一条线上?
I would forget about your immediate problem and redsign the whole thing.
Are you a self taught programmer?.
I ask because you have developed an unorthordox style.

There is surely no need for one function per month.
The correct way would be one function and pass the month as a parameter.

A function should perform one function not be used as a dump for a mishmash of SQL PHP and HTML

I may be misjudging because I cannot read your code comfortably..
How did you manage to get it all on one line?


是的,

我是自学成才的程序员。


我有一个下拉菜单,从中选择查看月份(作为参数传递)


我将其分解,以便人们可以通过拥有许多功能来理解我的意思想要使用相同的分页功能。


我复制了代码并粘贴了它。


当你查看我的分页代码和我的帖子时,如何在包含一系列功能的页面中使用分页?

Yes,
I''m a self taught programmer.

I have a drop-down from which one selects to view month (passed as a parameter)

I broke it down just so that one can understand what I mean by having many function but want the same pagination function to work in each.

I copied the code and pasted it.

When you look at my pagination code and my post, how would I use the pagination in a page containing a series of functions?


我会忘记你的直接问题并重新设计整个事情。

你是一个自学成才的程序员吗?

我问你因为你有开发了一种unorthordox风格。


每月肯定不需要一个函数。

正确的方法是一个函数并将月份作为参数传递。


函数应该执行一个函数,不能用作SQL PHP和HTML混搭的转储


我可能会误判因为我无法舒服地阅读你的代码..

你是如何设法在一条线上完成的?
I would forget about your immediate problem and redesign the whole thing.
Are you a self taught programmer?.
I ask because you have developed an unorthordox style.

There is surely no need for one function per month.
The correct way would be one function and pass the month as a parameter.

A function should perform one function not be used as a dump for a mishmash of SQL PHP and HTML

I may be misjudging because I cannot read your code comfortably..
How did you manage to get it all on one line?


对不起。我已经尝试但是无法以目前的格式阅读您的代码。


任何主持人踩踏并建议gnawz做出如何使他的代码变得如此难以理解的任何机会。


我只是指论坛内的布局。

所有在一行和空间增加
I am sorry. I have tried but cannot read your code in its present format.

Any chance of a moderator stepping in and advising gnawz on what he has done to make his code so unreadable.

I am referring only to the layout within the forum.
All on one line and a proliferation of spaces


这篇关于请帮助分页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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