Re: [PHP] simple I'm sure

2001-03-14 Thread Keith
It's bizarre it should work but I get back just 1, 2 or 3 Although with this just to test it works fine and i get back And really weird it this version for ($i=1; $i<50; $i++) : $quantid = "quant".$i ; if ($$quantid != "") { $artid = "art_nr_".$i; echo " "; } en

Re: [PHP] simple I'm sure

2001-03-14 Thread Jack Dempsey
try this...didn't test it, but i think it'll do the trick: for($i=1;$i<50;$i++){ $varid = "quant".$i; if($$varid != ""){ echo ''; echo ''; } } jack Keith wrote: > > Following loop works fine ! > but I don't want $art_nr_1 (which is 4564)