4 function contact_profile_assign($current) {
7 $o .= "<select id=\"contact_profile_selector\" name=\"profile_assign\" />";
9 $r = q("SELECT `profile-name` FROM `profile` WHERE `uid` = %d",
10 intval($_SESSION['uid']));
14 $selected = (($rr['profile-name'] == $current) ? " selected=\"selected\" " : "");
15 $o .= "<option value=\"{$rr['profile-name']}\" $selected >{$rr['profile-name']}</option>";