Advertisement
Guest User

Untitled

a guest
Jan 18th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.39 KB | None | 0 0
  1. <?php
  2.         include_once('database.php');
  3.        
  4.         function getCountry($conn){
  5.             $query= "SELECT * FROM country";
  6.             $cid= mysqli_query($conn,$query);
  7.             while($country= mysqli_fetch_assoc($cid)){?>
  8.  
  9.             <option value='<?php echo $country['cid']?>
  10.             <?php echo $country['country_name']?></option>
  11.         <?php}
  12.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement