Oh, the code works ok. Without the $Count1 = $Count++; it does not work. If you are saying it should be $Count+; it does not matter. That's what's weird. I think it would work no matter what I put in it could be $Count1 = $Countmeoutandcrap; and I think it would still work. The similar behaviour was apparent in another code page where I had exactly the same code repeated once and in the second instance the "next" worked with the href but in the first it did not. I checked & checked & checkd and finally I just added a 1 to the first code $Count and it worked. But any instances of $Count1 were commented out. I suspect it may have something to do with sessions or with some stack stuff but I really have no idea. Thanks for your interest. Phil Jônatas Zechim wrote: > Is the $Count++.. > > -----Mensagem original----- > De: PJ [mailto:af.gourmet@xxxxxxxxxxxx] > Enviada em: sexta-feira, 24 de abril de 2009 21:14 > Para: php-general@xxxxxxxxxxxxx > Assunto: inexplicable behaviour > > Frankly, I don't know what to look for or why something so weird would > happen: > I have pagination set up and the number for pages "next" has a link but > the "next" does not. I have experimented with all sorts of > configurations of the code but the only thing that works (and this is > totally "off the wall") is to do this > $Count = mysql_num_rows($results); > $Count1=$Count++; // without this, the "next" does not do the link--- > but there is no other $Count1 in the code either in the original page or > the include page. > And this phenomenon was apparent in a similar page. > I'd be curious to understand how this could happen. I could post the > whole code, but that would be some 300 lines... > > -- unheralded genius: "A clean desk is the sign of a dull mind. " ------------------------------------------------------------- Phil Jourdan --- pj@xxxxxxxxxxxxx http://www.ptahhotep.com http://www.chiccantine.com/andypantry.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php