RE: [PHP] incrementing string value

2003-07-28 Thread Ford, Mike [LSS]
-Original Message- From: Curt Zirzow [mailto:[EMAIL PROTECTED] Sent: 26 July 2003 01:14 * Thus wrote Curt Zirzow ([EMAIL PROTECTED]): * Thus wrote Jeremy ([EMAIL PROTECTED]): let me make sure I understand... $var = 'a'; $var++ print($var); would print b to

[PHP] incrementing string value

2003-07-25 Thread Jeremy
writing some client side javascript with some dynamic php, and I need to be able to print a dynamic number of variables to the javascript. I need to print: var a=; var b=; ...etc. Is there a way to increment a php $var much like $var++ would work? Jeremy -- PHP General Mailing List

RE: [PHP] incrementing string value

2003-07-25 Thread Carl Furst
Yep that should work as does $var-- -Original Message- From: Jeremy [mailto:[EMAIL PROTECTED] Sent: Friday, July 25, 2003 12:28 PM To: [EMAIL PROTECTED] Subject: [PHP] incrementing string value writing some client side javascript with some dynamic php, and I need to be able to print

Re: [PHP] incrementing string value

2003-07-25 Thread Jeremy
, July 25, 2003 12:28 PM To: [EMAIL PROTECTED] Subject: [PHP] incrementing string value writing some client side javascript with some dynamic php, and I need to be able to print a dynamic number of variables to the javascript. I need to print: var a=; var b=; ...etc. Is there a way

Re: [PHP] incrementing string value

2003-07-25 Thread Curt Zirzow
* Thus wrote Jeremy ([EMAIL PROTECTED]): writing some client side javascript with some dynamic php, and I need to be able to print a dynamic number of variables to the javascript. I need to print: var a=; var b=; ...etc. Is there a way to increment a php $var much like $var++ would

Re: [PHP] incrementing string value

2003-07-25 Thread Curt Zirzow
* Thus wrote Jeremy ([EMAIL PROTECTED]): let me make sure I understand... $var = 'a'; $var++ print($var); would print b to the screen? um.. ignore my post ealier.. yes it does print 'b' Curt -- I used to think I was indecisive, but now I'm not so sure. -- PHP General Mailing List

Re: [PHP] incrementing string value

2003-07-25 Thread Marek Kilimajer
JavaScript has arrays too. I'm sure you will find it easier to work with them. script var a=new Array(); ?php while($a=read_something()) { ? a[]=?= $a ?; ?php } ? /script Jeremy wrote: writing some client side javascript with some dynamic php, and I need to be able to print a dynamic number of

Re: [PHP] incrementing string value

2003-07-25 Thread Curt Zirzow
* Thus wrote Curt Zirzow ([EMAIL PROTECTED]): * Thus wrote Jeremy ([EMAIL PROTECTED]): let me make sure I understand... $var = 'a'; $var++ print($var); would print b to the screen? um.. ignore my post ealier.. yes it does print 'b' I forgot to mention, be sure to check how far

Re: [PHP] Incrementing the value

2002-10-03 Thread Uma Shankari T.
Hello, PNa href=Delay.php?hid=?php echo $_GET['hid']+1; ?img PNsrc=Gif/nextque.gif PN border=0/a i have written code such that initially it will display the value correspond to the value 1..after every click it will increment the value 2,3...so on..but now it is displaying the value 1

[PHP] Incrementing the value

2002-10-02 Thread Uma Shankari T.
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

Re: [PHP] Incrementing the value

2002-10-02 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey, I've helped you as far as I can without actually seeing the rest of the script to check if that value gets overridden somewhere else. - From the sample you are giving us everything looks ok *if* register_globals is on(and you say that it is).

[PHP] Incrementing the value

2002-10-01 Thread Uma Shankari T.
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

Re: [PHP] Incrementing the value

2002-10-01 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey, Whats the php version on the window machine? register_globals on? Try: a href=Delay.php?hid=?php echo $_GET['hid']+1; ?img src=Gif/nextque.gif border=0/a HTH! ~Pauly On Tuesday 01 October 2002 11:53 pm, Uma Shankari T. wrote: Hello , a

Re: [PHP] Incrementing the value

2002-10-01 Thread Uma Shankari T.
Hello, PNHey, PNWhats the php version on the window machine? register_globals on? I am using php4 and also the register_globals are On only.. PNTry: PNa href=Delay.php?hid=?php echo $_GET['hid']+1; ?img PNsrc=Gif/nextque.gif PN border=0/a Already i have tried this code also..Can anyone