I am facing issue to set the Auto drop down in my php form.
while selecting the QC Type, it should automatically select QC Code from MySQL Database. At the moment, i am selecting it manually. Can anyone help.
php Form :
<tr>
<td align="right"><b>QC Code</b></td>
<td>
<select name="qc_code" >
<option>Select a QC Code</option>
<?php
$get_qc = "select * from qctype";
$run_qc = mysqli_query($con, $get_qc);
while ($row_qctype=mysqli_fetch_array($run_qc)){
$qccode_title = $row_qctype['qccode_title'];
echo "<option value='$qccode_title'>$qccode_title</option>";
}
Database : -

