>7</option> <option value="8" <?php echo $person->grade == 8 ? "selected=='selected'" : null; ?> >8</option> </select> <!--They asked for a field to show when the grade was last entered. (obviously the grade will change from year to year)--> <span class="basic_info_edit">As of year: <input type="text" id="enter_grade_year" class="basic_info_edit" style="width:50px;"></span> </td> </tr> <tr> <td><strong>School:</strong></td> <td> <span class="basic_info_show"><?php echo $person->get_school(); ?> </span> <select class="basic_info_edit" id="school_edit"/> <option value="0">-----</option> <?php $all_schools = "SELECT * FROM Institutions WHERE Institution_Type=1 ORDER BY Institution_Name"; include "../include/dbconnopen.php"; $program_info = mysqli_query($cnnEnlace, $all_schools); while ($temp_school = mysqli_fetch_array($program_info)) { ?> <option value="<?php echo $temp_school['Inst_ID']; ?> " <?php echo $temp_school['Inst_ID'] == $person->schoolid ? "selected='selected'" : null;