Re: select multiple
| From: | 1LT John W. Holmes | Date: | Wed, 31 Jul 2002 13:20:31 +0000 |
| Subject: | Re: select multiple | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-110518@lists.php.net to get a copy of this message | ||
Use implode to make the array into a string and insert that. Depends on your
database structure exactly how you'd do it...
www.php.net/implode
---John Holmes...
----- Original Message -----
From: <christen1@nomade.fr>
To: <php-general@lists.php.net>
Sent: Wednesday, July 31, 2002 8:56 AM
Subject: [PHP] select multiple
Hello,
i have done as told to select multiple value from a html
form, but i cannot insert all of them into MySql
database.
it inserts Array into the field, instead of the list of
values.
What can i do?
Is there a special script to insert them?
i tried,
$str = "";
foreach ($tableau as $k=>$v)
$str= $v . " ";
$sjt1=$_POST["sjt1"]; and then the insert command
(among others )but it's always the same story. Please
help, thanks
-------------------
L'e-mail gratuit pas comme les autres.
NOMADE.FR, pourquoi chercher ailleurs ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php