I need some help with populating a dropdown list, I have been searching around to find solution with some trial and errors but I must admit, I never touch PHP. I have the following code but it does not display anything, I assume my problem is with the connection, so my question is how to build such a connection:
<?php
$sql = mysql_query("SELECT ProvinceNameFR FROM Province");
while ($row1 = mysql_fetch_array($sql)) {
echo "<option value='".$row1['value']."'>".$row1['value']."
</option>";
}
?>
Where do I go from that? I am involved in a project that someone else developed. Thanks