Forum Moderators: coopster

Message Too Old, No Replies

Need code to pull database entry seperated by commas.

         

scalp8

1:37 pm on May 1, 2009 (gmt 0)

10+ Year Member



I'm using Drupal and need a php code for a views argument that will call the currently logged in user's entries for a particular field seperated by commas. I'm semi-familiar with PHP, but am really only up to speed enough to edit not create. I think the tokens are {user} for logged in user and {field_A} for the field.

ogletree

2:32 am on May 3, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I probably don't understand what your asking but I think you need to use explode()

eeek

5:34 am on May 3, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I probably don't understand what your asking

Same here.

but I think you need to use explode()

Yes, explode() at least seems to fit what he's asking.

scalp8

1:12 pm on May 3, 2009 (gmt 0)

10+ Year Member



I need a field saved in a different content type to be called to populate a views argument. So if a user selected a particular choice in their profile, say "red", then when they access the view in question the argument % will be replaced with "red" so they will only see items associated with "red".

g1smd

7:31 pm on May 3, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I think you'll need a Drupal-specific help forum for this.