<?php echo $data["shou_text"]; ?> </td> </tr> <?php $counter++; } ?> <tr> <?php $result1 = $shout->SelectPreviousPage(&$first_shout_id, $shouts_per_page); $result2 = $shout->SelectNextPage(&$last_shout_id); $count1 = mysql_num_rows($result1); $count2 = mysql_num_rows($result2); if ($count1 > 0) { ?> <td bgcolor="#FFFFFF" align="center" colspan="2"> <a href="javascript:ChangePageBackShout(<?php echo $first_shout_id; ?> );">Anterior</a> <?php } else {