for ($i = 1; $i <= $num_rows; $i++) { $rowSubDiv = getRows($rsBn); echo "<option value='{$rowSubDiv['0']}'>{$rowSubDiv['2']}</option>"; } } unset($rsBn, $num_rows, $rowSubDiv); ?> </select></td></tr> <tr> <td align="left"><span class="error">*</span>Parliament Constituency</td> <td align="left" id="pc_result"><select name="pc" id="pc" style="width:200px;"> <?php if (isset($_REQUEST['ass_cd'])) { include_once "function/add_fun.php"; $subdiv = $subdiv_cd; $rsPC = fatch_pc($subdiv); $num_rows = rowCount($rsPC); if ($num_rows > 0) { echo "<option value='0'>-Select PC-</option>\n"; for ($i = 1; $i <= $num_rows; $i++) { $rowPC = getRows($rsPC); echo "<option value='{$rowPC['0']}'>{$rowPC['1']}</option>\n"; $rowPC = null; } } $num_rows = 0; $rsPC = null; } ?> </select> </td></tr>
for ($i = 1; $i <= $num_rows; $i++) { $rowSubDiv = getRows($rsBn); echo "<option value='{$rowSubDiv['0']}'>{$rowSubDiv['2']}</option>"; } } $rsBn = null; $num_rows = 0; $rowSubDiv = null; ?> </select></td></tr> <tr> <td align="left"><span class="error">*</span>Parliament Constituency</td> <td align="left" id="pc_result"><select name="pc" id="pc" style="width:200px;" onchange="return pc_change(this.value);"> <?php if (isset($_REQUEST['assembly']) && isset($_REQUEST['noofparty']) && isset($_REQUEST['poststat'])) { $rsPC = fatch_pc($subdiv_ed); $num_rows = rowCount($rsPC); if ($num_rows > 0) { echo "<option value='0'>-Select PC-</option>\n"; for ($i = 1; $i <= $num_rows; $i++) { $rowPC = getRows($rsPC); echo "<option value='{$rowPC['0']}'>{$rowPC['1']}</option>\n"; $rowPC = NULL; } } $num_rows = 0; $rsPC = NULL; } ?> </select></td> </tr>