I have a table countries ...
idCountry countryName
1 Italy
2 France
3 England
and another table people
idName personName countryCode
1 Jim 1
2 John 2
3 Michael 1
this would look like
idName personName countryName
1 Jim Italy
............................................... ..............................................................................
2 Michael Italy
I have a page profile.php where users can modify their profile.
Could you pls advice how to make a dropdown where are listed all countryes from table countries, but the selected country to be the one the user comes from.
Example
profile jim
Code: Select all
<select name="">
<option value="3">England</option>
<option value="2">France</option>
<option selected value="3">Italy</option>
</select>Code: Select all
<select name="">
<option value="3">England</option>
<option value="2" selected>France</option>
<option value="3">Italy</option>
</select>thx in advance