Bit confused why this is happening...
It seems to stack every digit vertically ie.Code:echo "<table class='pag_table'>"; echo "<tr><td>"; $limitrow = $_GET['startrow']; $max = intval($numrows/$limit); if ($numrows%$limit) { // has remainder so add one page $max++; } if ($startrow>=2) { echo '<a href="'.$_SERVER['PHP_SELF'].'?Cat='.$_GET['Cat'].'&startrow='.($startrow-$limit).'"><img src="/PREV.gif" /></a>'; } if ($limitrow<(($max*$limit)-$limit)) { // not last page so give NEXT link echo '<a href="'.$_SERVER['PHP_SELF'].'?Cat='.$_GET['Cat'].'&startrow='.($startrow+$limit).'"><img src="/NEXT.gif" /></a><br /><br />'; } echo "</td></tr>"; echo "<tr><td>"; print '<div id="pagmenu">'; $startrow = $_GET['startrow']; $mid = ($startrow/$limit); $result = ($mid+1); echo "Page ".$result." of ".$max."<br /><br />"; print "</div>"; echo "</td></tr>"; echo "<tr><td>"; print '<span class="nummenu2">'; $max = intval($numrows/$limit); if ($numrows%$limit) { // has remainder so add one page $max++; } for ($i=1;$i<=$max;$i++) { echo '| <a href="'.$_SERVER['PHP_SELF'].'?Cat='.$_GET['Cat'].'&startrow='.($limit*($i-1)).'">'.$i.'</a> |'; } print "</span>"; echo "</td></tr>"; echo "</table>";
|
1
||
2
||
3
|
instead of | 1 | 2 | 3 |
why is this? it works fine in Firefox, but not in IE. what could be causing it?



Reply With Quote

(:
Bookmarks