phpQuestioner Posted June 10, 2007 Share Posted June 10, 2007 When you use pagination, how do you disable the link for the current page you are on? Example: <a >1</a> | <a href="pagination.php?pg=2>2</a> | <a href="pagination.php?pg=3>3</a> I think you would use some type of php_self code to do this, but I am not sure. Anyone know how this is done? Quote Link to comment https://forums.phpfreaks.com/topic/55020-disabling-current-page-pagination-link/ Share on other sites More sharing options...
AndyB Posted June 10, 2007 Share Posted June 10, 2007 Since you always know which page, i.e. pg value, you're on ... just generate the links with a for loop and echo a different output when the loop counter equals the page number. Quote Link to comment https://forums.phpfreaks.com/topic/55020-disabling-current-page-pagination-link/#findComment-271990 Share on other sites More sharing options...
phpQuestioner Posted June 10, 2007 Author Share Posted June 10, 2007 Thanks AndyB - I kind of know what you mean Quote Link to comment https://forums.phpfreaks.com/topic/55020-disabling-current-page-pagination-link/#findComment-271991 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.