pottidmeat Posted September 28, 2006 Share Posted September 28, 2006 Hi,I hope someone can help me resolve this issue, as it's driving me crazy.Here are the respective links just in case it might help to get a clearer picture:http://www.gmparchitects-la.com/docs/projects.php?project=Water%20Terracehttp://www.atomiccherry.com/clients/gmp/docs/projects.php?project=Water%20TerraceHere's the skinny...The "project.php" page on each respective server is identical, line for line. The problem is that the pagination aspect on the test server (www.atomiccherry.com/) works great, but on the clients server, the one it needs to work on, doesn't function properly.Here's a snippet of the code:<?php if ($totalRows > 1) { do { echo "<div class='center'><img src='../images/projects/" . $row['image'] . "' /></div>"; } while ($row = mysql_fetch_array($result)); echo "<div style='text-align: right; font-size: 10px; margin-top: 15px; height: 25px; padding-top: 4px;'>"; if ($page != 1) { $pageprev = $page - 1; echo "<a href='projects.php?page=$pageprev&project=" . $_GET['project'] . "'><< </a>"; } else { } $numofpages = $totalRows / $limit; for ($i = 1; $i <= $numofpages; $i++) { if ($i == $page && $totalRows > 1) { echo "<span style='color: #DDDCDB;'> " . $i . " </span>"; } elseif ($totalRows > 1) { echo "<a href='projects.php?page=$i&project=". $_GET['project'] . "'>$i</a> "; } } if (($totalRows % $limit) != 0) { if ($i == $page && $totalRows > 1) { echo "<span style='color: #DDDCDB;'> " . $i . " </span>"; } elseif ($totalRows > 1) { echo "<a href='projects.php?page=$i&project=" . $_GET['project'] . "'>$i</a> "; } } if (($totalRows - ($limit * $page)) > 0) { $pagenext = $page + 1; echo "<a href='projects.php?page=$pagenext&project=" . $_GET['project'] . "'>>></a>"; } else { } echo "</div>"; } // end recordset finds results query if ($totolRows == 1) { echo "<div><img src='../images/projects/" . $row['image'] . "' /></div>";}?> Quote Link to comment https://forums.phpfreaks.com/topic/22413-pagination-problem/ Share on other sites More sharing options...
HuggieBear Posted September 28, 2006 Share Posted September 28, 2006 What exactly isn't functioning, they both appear to be working the same as far as I can see.Pagination looks good on both.RegardsHuggie Quote Link to comment https://forums.phpfreaks.com/topic/22413-pagination-problem/#findComment-100486 Share on other sites More sharing options...
mendoz Posted September 28, 2006 Share Posted September 28, 2006 Both are working fine man Quote Link to comment https://forums.phpfreaks.com/topic/22413-pagination-problem/#findComment-100491 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.