Populate one perticular array which is in my code

I have code like below and I am using single form for EDIT or UPDATE and NEW, $opt_arr using static value but I need to get these value from the database table called country. How can I modify below code?

Country * <?php $opt_arr = array("India", "Middle East", "Nepal","US","Srilanka"); ?> Please select country <?php foreach ($opt_arr as $opt) { if ($edit && $opt == $recipe['country']) { $sel = 'selected'; } else { $sel = ''; } echo '' . $opt . ''; } ?>

If anyone interested in solving this I can share the entire project with you along with the sql codes.