help!!!
i have this code to make a form and the form works
<?
$db = mysql_connect("intranet.hr.nl", "login", "password");
mysql_select_db("vakantiehuizengids",$db);
$result = mysql_query("SELECT * from tblLanden");
echo "<select name=\"test\" MULTIPLE size=\"8\">";
while ($rows=mysql_fetch_array($result))
{
$option = $rows['LandID'];
$Land = $rows['LandNaam'];
echo "<option value\"$option\">$Land</option>";
}
echo "</select>";
?>
This is the code to put the values into the database
<?php
$db = mysql_connect("intranet.hr.nl", "login", "password");
mysql_select_db("vakantiehuizengids", $db);
$sql1 = "insert into tblPlaatsNaamWoning (PlaatsNaamWoning) values ('$PlaatsNaamWoning')";
$result1 = mysql_query($sql1);
$insert_value1 = mysql_insert_id();
$sql2 = "insert into tblAdresWoning
(PlaatsNaamWoningID,LandID,PostcodeWoning,LiggingWoning,HuisNummerWoning,LocatieBeschrijvingWoning,StraatNaamWoning)
values
('$insert_value1','$LandID','$PostcodeWoning','$LiggingWoning','$HuisNummerWoning','$LocatieBeschrijvingWoning','$StraatNaamWoning')";
$result2 = mysql_query($sql2);
print ("de database is gevuld<br>\n");
?>
But the LandID doesnt show into the DB
please help