Jump to content

Database field of type member w/ multiple selection

Featured Replies

Posted

I am running into a bit of a weird issue that I cant seem to solve.

When using the pages application to create a database, with a field of type member. I can;t seem to output the string of id's correctly due to a weird occurrence where there is a line break between each ID. Usually when working with IPS it stored the arrays with the delimiter of comma, but in this particular case, it doesn't seem to be doing so. Is this a bug? Is my database incorrectly setup?

Example database with id 2 and 1 stored in a field of type members.


+---------+
| field_6 |
+---------+
| 2
1     |
+---------+

 

Before we used

$ids = explode(',', $value);

Now

$ids = explode("\n", $value);

 

Yes, using linebreaks is intended.

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.