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? 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. 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 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
Archived
This topic is now archived and is closed to further replies.