"SELECT circularno, date,cir content, heading From circular");
$row =mysqli_num_rows ($sql);
while ($row = mysqli_fetch_array($sql)){
echo "<option value-='". $row['date']."'>" .$row['date']."</option>" ;
}? >
</select>
<select id="circ" name="category 1" class="category1" required="required">
<option value=" ">Circular Number</option>
<?php
require('db.php');
$sql = mysqli_query ($Con, "SELECT circularno From circular");
$row= mysqli_num_rows ($sql);
while ($row = mysql_fetch_array($sql)){
echo "<option value='".$row[' circularno']."'>" .$row[' circularno']."</option>";
This is what currently used for judt pick the data of a single column and show it in dropdown
Only have to do require('db.php') once btw
Yes, this will be rendered once. If you want to change the rendered document, you need to do it via Javascript or reload the page with a variable set that will render it differently (for example as a GET parameter)
use pdo
Обсуждают сегодня