Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » how put in a select the value of a db table

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 583 Views
  • bebabeba
    Avatar
    Community Member
    192 Posts

    how put in a select the value of a db table Link to this post

    Hi!
    I create a select as explain in guide.
    My problem is tha I connect silverstripe to an external database. Here I have "Country" table whit the name of word country. I want to put this value in my select.
    To create select I use:
    new DropdownField($s, 'Nazione', array(
                'Italia'=>'Italia',
                'Englad' => 'England'
                )),
    but write all the value is too much!
    Can you help me to solve this problem?

    583 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.