1

我将变量$gallery_name = (isset($_GET['subj']) ? $_GET['subj'] : 'cakes');用于具有多个照片画廊的菜单和$page = (isset($_GET['page']) ? $_GET['page'] : 1);所选画廊的分页。When the gallery called 'cakes' is selected, pagination displays pages with images from the gallery, but when any other gallery is selected, clicking on pagination links defaults back to 'cakes' gallery instead of displaying images from the selected gallery. 我该如何解决这个问题?

4

1 回答 1

1

我认为您没有subj为画廊页面传递参数,应该是:

yoursite/page=1&subj=gallery1

如果是:yoursite/page=1那么画廊将默认为蛋糕。所以请确保链接实际上是在传递subj参数。或者提供更多代码,以便提供更好的答案。

于 2013-09-30T02:16:40.490 回答