echo $names[$i]['name']; ?> </option> <?php } ?> <input type = "submit" value = "Change"> </select> </label> <?php // To Sort Entries if (isset($_POST['updating'])) { $callUpdate = new Data_Class(); $callUpdate->updateData($_POST["nameU"], $_POST["commentsU"], $_POST["idU"]); } ?> <label> <form action='form.php' method='POST'> <select name='sort' id='sort'><br> <option selected='selected'>--Sort by Category--</option><br> <option value="art">Art</option> <option value="left_brain">Left Brain</option> <option value="diversity">Diversity</option> <option value="all">Get All Posts</option> <input type = "submit" value = "Sort"> </select>
} ?> <input type = "submit" value = "Delete"> </select> </label> <label> <form action='form.php' method='POST'> <select name='update' id='update'> <br> <option selected='selected'>--Change--</option><br> <?php if (isset($_POST['updating'])) { $callUpdate = new Data_Class(); $callUpdate->updateData($_POST["nameU"], $_POST["effectsU"], $_POST["ingredientsU"], $_POST["stockU"], $_POST["idU"]); } $names = $callClass->getNames(); for ($i = 0; $i < count($names); $i++) { ?> <option value="<?php echo $names[$i]['name']; ?> "><?php echo $names[$i]['name']; ?> </option> <?php } ?> <input type = "submit" value = "Change">
</select> <br><input align = "center" type="submit" value = "Get Status"> </form> </label> </nav> <?php // To Sort Entries if (isset($_POST['updating'])) { $callUpdate = new Data_Class(); $callUpdate->updateData($_POST["nameU"], $_POST["addressU"], $_POST["itemU"], $_POST["idU"], $_POST["dueDateU"]); } include 'text.php'; ?> </section> <footer> <h2><center>Database Information</center><h2> </footer> </body> </html>