Re: [PHP] array varible problems

2005-09-03 Thread edwardspl
Hello, I have just rewrite the source and test the result... But it is still problem ! So, more help ? Thanks ! [EMAIL PROTECTED] wrote: > Hello Jasper, > > Does your means : > > I need to rewite the source / result page as the following ? > > Result page: > > for($i=0;$i<4;$i++) > { > $

Re: [PHP] array varible problems

2005-08-14 Thread Jasper Bryant-Greene
[EMAIL PROTECTED] wrote: Hello Jasper, Does your means : I need to rewite the source / result page as the following ? [snip] Yes. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] array varible problems

2005-08-14 Thread edwardspl
Hello Jasper, Does your means : I need to rewite the source / result page as the following ? Result page: Source page: for($i=0;$i<4;$i++) { } Thank for your help ! Edward. Jasper Bryant-Greene wrote: > [EMAIL PROTECTED] wrote: > > Sorry, I don't quit understan

Re: [PHP] array varible problems

2005-08-14 Thread Jasper Bryant-Greene
[EMAIL PROTECTED] wrote: Sorry, I don't quit understanding the site http://www.php.net/for... So, would you mind to give me a example about it ? for($i=0; $i<3; $i++) { print($i); } will print: 0 1 2 Basically in any expression like the following: for(expr1; expr2; expr3) { /

Re: [PHP] array varible problems

2005-08-14 Thread edwardspl
Sorry, I don't quit understanding the site http://www.php.net/for... So, would you mind to give me a example about it ? Thank for your help ! Jasper Bryant-Greene wrote: > Dan Lowe wrote: > >> for($i=1;$i<5;$i++) > > > > This means: > > > > * Start with $i = 1 > > * End loop if $i is less than 5

Re: [PHP] array varible problems

2005-08-13 Thread Jasper Bryant-Greene
Dan Lowe wrote: for($i=1;$i<5;$i++) This means: * Start with $i = 1 * End loop if $i is less than 5 * Increment $i each time around So your loop is ending at the first check because $i is less than 5. You want $i > 4 instead, I think. Umm, no, I don't think so... Your second point is wron

Re: [PHP] array varible problems

2005-08-13 Thread Dan Lowe
On Aug 13, 2005, at 8:35 AM, [EMAIL PROTECTED] wrote: for($i=1;$i<5;$i++) This means: * Start with $i = 1 * End loop if $i is less than 5 * Increment $i each time around So your loop is ending at the first check because $i is less than 5. You want $i > 4 instead, I think. -dan {

[PHP] array varible problems

2005-08-13 Thread edwardspl
Dear you, Now, I want to define a set of array varible with table structure as the following: Result page: Source page: for($i=1;$i<5;$i++) { } Only display the result of zero array, eg : f1[0] f2[0] f3[0] f4[0] So, how to write the source (Web page - when user clic