e1seix
09-11-2007, 05:21 PM
Bit confused why this is happening...
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>";
It seems to stack every digit vertically ie.
|
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?
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>";
It seems to stack every digit vertically ie.
|
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?