Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="form-group col-md-4">
- <label>Size and CD</label>
- <div class="field form-inline">
- <input autocomplete="off" class="input form-control" id="field1" name="prof1" type="text" placeholder="Type something" data-items="8" />
- <button id="b1" class="btn add-more" type="button">+</button>
- </div>
- </div>
- <div class="form-group col-md-4">
- <label>Quality</label>
- <div class="selectQuality form-inline">
- <select class="form-control" id="selectQuality" name="selectQuality">
- <?php
- $servername = "localhost";
- $username = "root";
- $password = "";
- $dbname = "my_animelist";
- // Create Connection
- $conn = mysqli_connect($servername, $username, $password, $dbname);
- // Check connection
- if (!$conn) {
- trigger_error("Connection failed: " . mysqli_connect_error());
- }
- //Run Query
- $stmt = "SELECT DISTINCT `genre` FROM `genre` WHERE 1";
- $result = mysqli_query($conn,$stmt) or die(mysqli_error($conn));
- while(list($category) = mysqli_fetch_row($result)){
- echo '<option value="'.$category.'">'.$category.'</option>';
- }
- mysqli_close($conn);
- ?>
- </select>
- <button id="b1" class="btn add-more-selectQuality" type="button">+</button>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement