Re: Feelin' dumb...

From: Date: Sat, 18 May 2002 03:18:16 +0000
Subject: Re: Feelin' dumb...
Groups: php.general 
Request: Send a blank email to php-general+get-98205@lists.php.net to get a copy of this message
try, for ($i=1; $i<=$num_pages; $i = $i + 20) { } or try, $i = 1; while ($i<=$num_pages) { //text here $i = $i + 20; } I got those little problems too all the time.. and the boards/lists always help. Jule On Friday 17 May 2002 23:19, you wrote: > Okay, I'm apologizing right now for this, but I hope it's at least > tolerable. I have this: > > for ($i=1; $i<=$num_pages; $i++) { > // print stuff here > } > > For each loop, I want to add 20 to $i, so after the first iteration, I have > 21, then 41, 61, etc. I've tried $i+20, $i + 20, I've tried looking in the > manual, but I assume this is some C-type function, and I'm not familiar > with C! > > Any helpers? > > Jason Soza -- |\/\__________________________/\/| | Jule Slootbeek | | jslootbeek@clarku.edu | | http://blindtheory.cjb.net | | __________________________ | |/\/ \/\| ------------------------------------------------------- -- |\/\__________________________/\/| | Jule Slootbeek | | jslootbeek@clarku.edu | | http://blindtheory.cjb.net | | __________________________ | |/\/ \/\|

« previous php.general (#98205) next »