i've a problem with storing a multiple value field in a MySQL database.
First of all i will tell you what i'm goinig to do. I will sync all users and contacts from an active directory to a mysql database. So far i've written a script which is doinig that.
The only problem is a multi value field in the active directory, named "memberOf". This field sometimes contains more than one value, but only the first value is written to the database. But what i want to do is to write all values from a user/contact in only one mysql column.
I know that I can get all values like this, but the question is, how to write these values in one mysql column?
my @member = $entry->get_value('memberof');
Some help would be really nice.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
Outside of code tags, you may need to use entities for some characters:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||