contents of fetch array into a string
| From: | Kris Vose | Date: | Wed, 06 Mar 2002 18:13:31 +0000 |
| Subject: | contents of fetch array into a string | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-87498@lists.php.net to get a copy of this message | ||
I have a problem with reading the contents of $r[1] into a string called = $mail. Does anyone have
any suggestions? Any help is greatly appreciated.
Kris Vose
if ($czero != "")
{
$t = mysql_query("SELECT * FROM AddExisting");
$number_of_customers = count($t);
while($r = mysql_fetch_array($t))
{
extract($r);
for ($i = 0; $i<$number_of_customers; $i++)
{
echo $r[1].", ";
}
}
$mail = ' ';
foreach($r[1] as $mailline)
{
$mail.=$mailline;
}
}