pone el codigo php entre la etiquetas de marcas. y por favor indenta el codigo que asi no se entiende nada.
a continuacion el ejemplo de marcas, te queda indentarlo
Código PHP:
<?php if ($pageNum_subidas > 0) { // Show if not first page ?>
<a href="<?php printf("%s?pageNum_subidas=%d%s", $currentPage, 0, $queryString_subidas); ?>">Primero</a>
<?php } // Show if not first page ?>
</td>
<td width="31%" align="center">
<?php if ($pageNum_subidas > 0) { // Show if not first page ?>
<a href="<?php printf("%s?pageNum_subidas=%d%s", $currentPage, max(0, $pageNum_subidas - 1), $queryString_subidas); ?>">Anterior</a>
<?php } // Show if not first page ?>
</td>
<td width="23%" align="center">
<?php if ($pageNum_subidas < $totalPages_subidas) { // Show if not last page ?>
<a href="<?php printf("%s?pageNum_subidas=%d%s", $currentPage, min($totalPages_subidas, $pageNum_subidas + 1), $queryString_subidas); ?>">Siguiente</a>
<?php } // Show if not last page ?>
</td>
<td width="23%" align="center">
<?php if ($pageNum_subidas < $totalPages_subidas) { // Show if not last page ?>
<a href="<?php printf("%s?pageNum_subidas=%d%s", $currentPage, $totalPages_subidas, $queryString_subidas); ?>">Último</a>
<?php } // Show if not last page ?>