RE: [PHP-DB] Putting a string into a variable.
| From: | Jennifer Goodie | Date: | Fri, 28 Mar 2003 19:17:11 +0000 |
| Subject: | RE: [PHP-DB] Putting a string into a variable. | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-26675@lists.php.net to get a copy of this message | ||
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:info@best-it.biz]
Sent: Friday, March 28, 2003 11:13 AM
To: php-db@lists.php.net
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:
$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
string into an array or even store one as a variable.
thanks,
/Tim
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php