RE: [PHP] [NEWBIE] Trying to combine array into one string
| From: | Chris W. Parker | Date: | Tue, 15 Feb 2005 18:10:24 +0000 |
| Subject: | RE: [PHP] [NEWBIE] Trying to combine array into one string | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-208750@lists.php.net to get a copy of this message | ||
Dave <mailto:dave@tokyocomedy.com>
on Tuesday, February 15, 2005 7:37 AM said:
> The Problem:
> I can't quite figure out how to take the results of the
> mysql_query() and assemble them into a string. In my experiments so
> far, I either get a "mysql_data_seek(): Offset 0 is invalid for MySQL
> result index" error, or my mail function sends to a blank address.
http://php.net/implode
There's also the .= operator which concatenates.
HTH,
Chris.