Re: Putting a string into a variable.
| From: | Ronan Chilvers | Date: | Fri, 28 Mar 2003 20:23:05 +0000 |
| Subject: | Re: Putting a string into a variable. | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-26678@lists.php.net to get a copy of this message | ||
Hi Tim
Comments inline...
>
> $stringarray[] = array();
> $i = 0;
>
> while ( $i < 6 ){
> $stringarray[$i] = "<table
> cellspacing=\"0\"><tr><td>".$this->differentarray[0]
> [0]."</td></tr></table>";
> }
>
>
> 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 while loop.
>
> thanks,
> /Tim
>
--
Ronan
e: ronan@thelittledot.com
t: 01903 739 997
w: www.thelittledot.com
The Little Dot is a partnership of
Ronan Chilvers and Giles Webberley