$sql = "SELECT kid FROM Kcode"; $result = $db->query($sql); echo "<select name='kid'>"; echo "<option value='" . $row['kid'] . "'>Choose class</option>"; while ($row = mysql_fetch_array($result)) { echo "<option value='" . $row['kid'] . "'>" . $row['kid'] . "</option>"; } echo "</select>";
$db->query
$row
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)