RE: Incrementing the value

From: Date: Thu, 03 Oct 2002 09:27:13 +0000
Subject: RE: Incrementing the value
Groups: php.general 
Request: Send a blank email to php-general+get-118716@lists.php.net to get a copy of this message
I think you mean ++$hid, otherwise the value is inserted before it is incremented, and why not change to $_GET["hid"] for future compatibility and just to make sure. Are there any scoping issues we don't know about, e.g. is this snippet within a function? Tim Ward www.chessish.com > -----Original Message----- > From: Jason Young [mailto:jason1@erols.com] > Sent: 03 October 2002 05:15 > To: php-general@lists.php.net > Subject: Re: Incrementing the value > > > Try $hid++; > > This automatically increments by one, its just much easier to > deal with > than +1 .. besides, it wouldn't work on my Win32 platform, either. > > --Jason > > Uma Shankari T. wrote: > > Hello , > > > > <a href="Delay.php?hid=<?php echo $hid+1; ?>"><img > src="Gif/nextque.gif" > > border="0"></a> > > > > While clicking this link the $hid value get incremented > and fetch the value > > from the database according to that..the same thing is > working in linux > > platform and it is not working for the windows > platform..the value is not > > getting increment..Can anyone please tell me how to go > about with this..?? > > > > Regards, > > Uma > > > >

« previous php.general (#118716) next »