This is a discussion on "Inserting an array into a database." within the Classic ASP section. This forum, and the thread "Inserting an array into a database. are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Inserting an array into a database.
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Inserting an array into a database.
I have a form that has 20 check boxes, i have store the values into an array, i was wondering how i would then insert the array into the database, i would prefer the data to go into one field rather than 20 different fields. can anyone help?
|
|
|
|
#2
|
|||
|
|||
|
Re: Inserting an array into a database.
You can easyly pass the data into an string variable, then separate each field by a colon, for example. But I don't find it very useful. If you could explain it a litle more, may be I could find another solution. |
|
#3
|
||||
|
||||
|
Re: Inserting an array into a database.
I'd recommend saving as string because
1. it's faster: one record to read from database instead of many 2. it's flexible: easy to change and allows for clever little tweaks
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
|
![]() |
| Tags |
| inserting, array, database |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| inserting time | phiero21 | JavaScript Forum | 1 | May 2nd, 2008 20:09 |
| Inserting Session into the database | franknu | PHP Forum | 11 | Jun 17th, 2007 00:16 |
| Sorting a new array from an existing array | Ozeona | Flash & Multimedia Forum | 2 | Sep 20th, 2005 08:43 |
| array unable to check another array so as to be displayed | Ozeona | Flash & Multimedia Forum | 1 | Aug 5th, 2005 10:26 |
| inserting data to mysql db | Tim356 | PHP Forum | 1 | May 6th, 2005 04:20 |