hello i have two tables ,pelates(firstn ame,lastname,id _country) and country(country _name,id_countr y) and a form.i want to insert into tha pelates table the id_country from the other table but i can't.also in my form the countries appear with this code:
what can i do?
Code:
Country:<?php
require_once('../mysqli_connect.php');
$q= "SELECT * FROM country";
$r=mysql_query($q);
//var_dump($r);
?>
<select name="country_name" id="country_name">
<?php while ($row=mysql_fetch_assoc($r)) { ?>
<?php echo'<option value="' . $row['id_country'] . '" />' .$row['country_name'] . ' </option>';?>
<?php } mysql_close($link);
?>
</sele
Comment