I am creating a website that sells property. My issue is which i can't put the values in the database directly into my choose boxes.

Here it is going: In the database I get the values. Next I put it in a foreach:

foreach ($data as $v) {
    echo $resultData .= $v;

I am using UIElements class wordpress plugin, therefore the resultData shows the title from the UIElement input label, and $v the values.

Within the foreach it lists these fine, however when I put it towards the selection box, it only shows one value, and never all, just the last value.

What shall we be held missing?