Hi Tim
Comments inline...
>
> $stringarray[] = array();
> $i = 0;
>
> while ( $i < 6 ){
> $stringarray[$i] = "".$this->differentarray[0]
> [0]."";
> }
>
>
> When I echo $stringarray[1] it comes up empty... Is there a special trick to get a
You're not incrementing $i. You need $i++ in your
t I was thinking
of.
> -Original Message-
> From: Hutchins, Richard [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 28, 2003 2:22 PM
> To: 'Info_Best-IT'; [EMAIL PROTECTED]
> Subject: RE: [PHP-DB] Putting a string into a variable.
>
>
> You might be getti
PROTECTED]
> Sent: Friday, March 28, 2003 2:13 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-DB] Putting a string into a variable.
>
>
> I am having problems putting an html string into a variable
> to create an array of
> strings.
>
> something like this:
>
&
The part where $i is never equal to 1 might be the problem. You might want
to try incrementing your sentinel when using loops.
-Original Message-
From: Info_Best-IT [mailto:[EMAIL PROTECTED]
Sent: Friday, March 28, 2003 11:13 AM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Putting a string
I am having problems putting an html string into a variable to create an array of
strings.
something like this:
$stringarray[] = array();
$i = 0;
while ( $i < 6 ){
$stringarray[$i] = "".$this->differentarray[0]
[0]."";
}
When I echo $stringarray[1] it comes up empty... Is there a special