Last active
August 29, 2015 14:21
-
-
Save dennisdegryse/c21f8dc63856a402130e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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