RE: [PHP] Pattern Replacing
| From: | Boget, Chris | Date: | Thu, 29 Mar 2001 20:42:29 +0000 |
| Subject: | RE: [PHP] Pattern Replacing | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-46152@lists.php.net to get a copy of this message | ||
> That's where I get $query from. It's been returned from a multiple
> select via a web form. I want to format this selected data into a query
> string so I can plug it into a SQL statement.
> Thanks for the input and if any one has any thoughts on the subject
> appreciate the assistance.
If this is the case, then all you need is this:
$query .= implode( ", ", $fields );
This will do exactly what you want...
Chris