Hi,
thanks for the help, again!
Following your suggestion I've made a little research, and now it works perfectly... but... :-) [I'm sorry I'm tedious] well, I didn't really get how when you get to the last page of the result you won't see any "next" button.
Here's the code I've did for no "previous" button on the first page:
if($pagina == 0)
{
echo "<h3> </h3>";
}
else
{
echo '<h3 style="text-align: left"><a href="'.$_SERVER['PHP_SELF'].'?tipo='.($tipo).'&pagina='.($pagina-1).'">Indietro</a></h3>';
}
I guess for the no "next" button on the last page I need another if statement... but i cannot figure out the conditions... I mean, I cannot figure out how to obtain something like: $pagina == $lastpage, or something...
Should I add "thank you for your help"? Well, I guess so! Thank you a lot, really!
Ricroma
PS. oh! Another thing.... 🙂 I'm experiencing a problem with regular html and firefow... well, I've set this margin-left parameter that firefox for some reason cannot figure out, while I.E. works perfectly. Never experienced this before... anyway, the problem is that it seems that firefox consider the left margin to be the one of the previous <div> layer, and not the layer where the <h3> paragraph is. I've checked all the syntax and everything seems fine (no open tags)... well, here comes my usual code:
<div id="left">
<h3 style="margin-top:125px">
<img src="img/02menuproducts.gif" width="161" height="32" />
<br />
<br />
<a style="margin-left:20px" href="lista.php?tipo=crema">Creme</a>
<br />
<br />
<a style="margin-left:20px" href="lista.php?tipo=profumo">Profumi</a>
</h3>
</div>
<div id="content">
<center>
<img src="img/vetro.jpg" width="320" height="240" />
</center>
<h3 style="margin-left: 110px; margin-top:10px;">ciao ciao ciao ciao ciao ciao ciao ciao ciao ciao ciao</h3>
</div>
Well... super thanks!