|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Multiple insert into 1 field
Hope someone can help with this. I want to modify a form that inserts into a mysql database. Basically I have a list menu in a form where I want to be able to select multiples from the list, and insert them into 1 field in the database. I think everything is setup correctly, but when it inserts.....it inserts the statement "array" instead of any of the data from the list menu. The field is setup as varchar(255)
Any help would be great. Thanks |
|
#2
|
||||
|
||||
|
Multiple selects with square braces at the end of their names are treated as arrays. If you try to print an array, you get the word "Array." The solution is to join the elements of the array. In PHP, you can do this using the join() function.
__________________
Please don't PM me asking for solutions outside the scope of a thread. Keeping all responses in a thread stands to help others who come along later, which is after all what this forum's all about. |
![]() |
| Viewing: Dev Articles Community Forums > Databases > MySQL Development > Multiple insert into 1 field |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|