Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Data from database


sameast
Participant

@sameast

Hi ive got it working probably not the best way to do it but it works.

I did a var_dump on the $data variable and it outputs the following.

string(77) “Manufacturing, Bio science, Public sector, Transport/logistics, Environmental”

so i used the following.

$platforms = xprofile_get_field_data('Sector');

$data = xprofile_format_profile_field('checkbox', $platforms);

$test = explode(',', $data);

foreach( $test as $key => $value )
{
echo '<li>' . $value . '</li>';
}

Might help someone or not thanks hnla.

Skip to toolbar