AdRock Posted September 5, 2006 Share Posted September 5, 2006 Here is some code that displays the links in my pagaination but i would like them centeredIs there an easy way to do this?[code]if($prev_page >= 1) { echo("<b><<</b> <a href=/poem/$prev_page><b>Prev.</b></a>"); } //Display middle pages: **EDIT LINK PATH** for($a = 1; $a <= $total_pages; $a++) { if($a == $page) { echo("<b> $a</b> | "); //no link } else { echo("<a href=/poem/$a> $a </a> | "); } } //next page: **EDIT THIS LINK PATH** $next_page = $page + 1; if($next_page <= $total_pages) { echo("<a href=/poem/$next_page><b>Next</b></a> >>"); } [/code] Quote Link to comment Share on other sites More sharing options...
roopurt18 Posted September 5, 2006 Share Posted September 5, 2006 [code]echo '<div style="text-align: center;">' . implode(', ', $Paginations) . '</div>';[/code] Quote Link to comment 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.