Skip to content

Instantly share code, notes, and snippets.

@dennisdegryse
Last active August 29, 2015 14:21
Show Gist options
  • Save dennisdegryse/c21f8dc63856a402130e to your computer and use it in GitHub Desktop.
Save dennisdegryse/c21f8dc63856a402130e to your computer and use it in GitHub Desktop.
<?php
$sql = "SELECT * FROM custom_info ORDER by cust_name";
$query = mysqli_query($conn, $sql);
echo "<form action='index4a.php' method='get'>";
echo "<select name='customer'>";
echo "<option value=''>Customer</option>";
while($customer = mysqli_fetch_assoc($query)){
echo "<option value='{$customer['cust_name']}'> {$customer['cust_name']}</option>";
}
echo "</select>";
echo "<input type='submit'/>";
echo "</form>";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment