Hi..
I need some help. I have a problem to insert 2 values or variable from drop down list to database at the same time.
i want to insert name_relation into db, at the same time want to insert IcNo into db.
here my code:
<?php
include ("ConnectDB.php");
?>
<select name = "name_relation" id="name_relation">
<option value="" selected>Please Select</option>
<?php
$strSQL = "SELECT * FROM family_detail WHERE EmployeeNo = '$EmployeeNo'";
$objQuery = mysql_query($strSQL);
while($objResuut = mysql_fetch_array($objQuery))
{
?>
<option value="<?php echo $objResuut["Name"];?>"> <?php echo $objResuut["Name"]." - ".$objResuut["IcNo"] ." - ".$objResuut["relation"];?></option>
<?php
}
?>
</select>
<?php
mysql_close();
?>