if ($result['Status'] == -2) { echo ' checked="checked" '; } echo '> externer SMV-Supporter</input> '; echo '<input type="radio" name="Status" value="-3" '; if ($result['Status'] == -3) { echo ' checked="checked" '; } echo '> Lehrer</input> '; echo '<font color=green size=1> Neu </font>'; echo ' <div class="form-group"> <label>Teams: </label>'; $db = new Database(); $con = $db->connect(); $kw_result = $db->select_all_teams($con); while ($row = $kw_result->fetch_assoc()) { $tid = $row['tid']; $team = $row['bezeichnung']; echo '<input type="checkbox" name="Teams[]" value="' . $tid . '"> ' . $team . ' </input> '; /* if (0) { echo '<input selected="selected" value="'.$team'">'.$team.' </option>'; } else { echo '<option value="'.$team.'">'.$team.' </option>'; } */ }