<td><? if($p >= 2) { ?><a href="?p=<? echo($p-1); ?>" <img src=\"imagenes/anterior1.gif\"> </a><? } ?></td>