Well I'm making multiple drop down menus generated by a query which will be placed on the registration page.
The user can select an option from any or all of the drop down menus.
To avoid having to create potentially 100 or more rows in the database I thought I would insert them all into one field then use "explode".
The code below inserts the data.
PHP Code:
foreach ($vbulletin->GPC['favoriteteam'] as $team)
{
$teams .= "$team,";
}
$userdata->set('favoriteteam', $teams);
This code retrieves the data
PHP Code:
$teams = explode(",", $post['favoriteteam']);
foreach($teams as $key => $val)
{
$sportlogos .= "<img src='images/sports/$val.gif' width='30' height='30' /> ";
}