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: 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 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php