Or just append it...
Example:
$var = "";
$result = mysql_query(³SELECT filename, page_title FROM table²);
while ($row = mysql_fetch_assoc($result))
{
$var .= "{$row[page_title¹]}";
}
echo $var;
Arno
DotContent
www.dotcontent.net
On Mon, 06 Feb 2006 07:14:21 -0600
Pastor Steve <[EMAIL PROTECTED]> wrote:
>
> Greetings,
>
> I am attempting to put the results of a ³while² loop into a variable.
>
>
> Example:
>
> $result = mysql_query(³SELECT filename, page_title FROM table²);
> while ($row = mysql_fetch_assoc($result))
>
Put it in an array?
-Original Message-
From: Pastor Steve [mailto:[EMAIL PROTECTED]
Sent: Monday, February 06, 2006 8:14 PM
To: PHP eMail List
Subject: [PHP] Results In Variable
Greetings,
I am attempting to put the results of a ³while² loop into a variable.
Example:
$result = mysql_
3 matches
Mail list logo