Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <b>Classification:</b> <br />
- <?php
- // Define the query.
- $query = "SELECT name FROM shows";
- $results = mysql_query ($query);
- if ($myrow = @mysql_fetch_array($result))
- {
- $name = $myrow[0];
- }
- $options = array($name);
- echo "<select name=\"classification\">\n";
- foreach ($options as $option) {
- echo " <option";
- if ($option == $row['name']) {
- echo " selected=\"true\"";
- }
- echo ">", $option, "</option>\n";
- }
- echo "</select>\n";
- ?>
Add Comment
Please, Sign In to add comment