首页 > 解决方案 > 分页不可点击

问题描述

搜索后我正在努力解决分页问题。这是我用作模板的代码: https ://www.sourcecodester.com/php/14194/responsive-online-blog-website-using-phpmysql.html

但是这部分代码给了我一个标题:

if($i==$page){
                $per_page_html .= '<input type="submit" name="page" value="' . $i . '" class="btn-page current btn-warning" />';
            } else {
                $per_page_html .= '<input type="submit" name="page" value="' . $i . '" class="btn-page btn-danger" />';
            }

一切正常,但数字不可点击。所以没有办法进入下一页。

有任何想法吗?谢谢。

标签: phpmysqlsearchpagination

解决方案


推荐阅读