Skip to content

Instantly share code, notes, and snippets.

Created March 11, 2016 15:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/bd1b2133e28c0480e27e to your computer and use it in GitHub Desktop.
Save anonymous/bd1b2133e28c0480e27e to your computer and use it in GitHub Desktop.
@{
var db = Database.Open("ebay_database");
var makes = db.Query("SELECT * From tbl_Types");
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>add: single</title>
</head>
<body><center>
<h1><b>Add device: Single</b></h1>
<form name="inputform" method="post">
<select name="make_list">
@foreach(var make in makes){
<option value="@make.[Make]">@make.[Make]</option>
}
</select>
</form>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment