<td> <h4>To view discounts, simply select from a category below.</h4><br /> <!-- List Category Box --> <?php $db = new mysqli('50.62.209.81:3306','user','password','MassWarVetsADM'); $query="SELECT Category FROM Category"; $result = mysql_query ($query); echo "<select name='categoriesSelect' class='e1'><option value='0'>Please Select A Category</option>"; // printing the list box select command while($categoryinfo=mysql_fetch_array($result)){//Array or records stored in $nt echo "<option value=\"".htmlspecialchars($categoryinfo['category'])."\">".$categoryinfo['category']."</option>"; } echo"</select>"; ?>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)