I'm trying to fix my paging problem, it works perfectly listing everything from pages 1-9. Once it hits page 10 and higher it gives me this error
Warning: Cannot modify header information - headers already sent by (output started at /home/layoutst/public_html/Graphics/graphics_header.php:7) in /home/layoutst/public_html/Graphics/category.php on line 27
echo '</div><span class="pagelinks">';
?>
<p>Page(s):
<?php if ( $page > 1 )
{
echo '<a href="/Graphics/'.$category['parentPerm'].'-'.$category['categoryPerm'].'-page'. ( $page - 1 ) .'.html">Previous</a> - ';
}
for ( $i = 1; $i <= $totalPages; $i++ )
{
if ( $page == $i )
{
echo ' <strong>'.$i.'</strong> ';
}
else
{
echo ' <a href="/Graphics/'.$category['parentPerm'].'-'.$category['categoryPerm'].'-page'. $i .'.html">'.$i.'</a> ';
}
}
if ( $page < $totalPages )
{
echo ' - <a href="/Graphics/'.$category['parentPerm'].'-'.$category['categoryPerm'].'-page'. ( $page + 1 ) .'.html">Next</a></span>';
}?>
</p>
This is the paging code. Do you guys/girls see anything wrong with it?