title: stack overflow call stack #timememoryfunctionlocation 10.0000143728
body: <p>Hi this is my second time posting on this site. I looked @ the other article pertaining to this message and am unable to figure this out.</p>
  
  <p>So i'm trying to dynamically populate the content of a drop down box with data store in the DB.</p>
  
  <p>I'm getting the following error message displayed in the drop down for each record in the DB (3times)</p>
  
  <p>Any help would be appreciated.
  Thanks</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;?php
  $con=mysqli_connect("localhost","root","","project1");
  // Check connection
          if (mysqli_connect_errno())
            {
            echo "Failed to connect to MySQL: " . mysqli_connect_error();
            }
  
  // this block would be at the top of your file above the html
  $query = "select * from countries";
  $country_results = mysqli_query($con,$query);
  $number_of_returns = mysqli_num_rows($country_results);
  ?&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;link rel="stylesheet" type="text/css" href="site.css"&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;h1&gt;Insert Site into DB&lt;/h1&gt;
      &lt;h2 class="button"&gt;&lt;a href=/index.html&gt;Home&lt;/a&gt;&lt;/h2&gt;
      &lt;h2 class="button"&gt;&lt;a href=/insert.html&gt;add site&lt;/a&gt;&lt;/h2&gt;
      &lt;h2 class="button"&gt;&lt;a href=/delete.html&gt;delete site&lt;/a&gt;&lt;/h2&gt;
      &lt;h2 class="button"&gt;&lt;a href=/search.html&gt;search site&lt;/a&gt;&lt;/h2&gt;
          &lt;form class="insert" action="insert.php" method="post"&gt;
                  &lt;p&gt;Site Info&lt;/p&gt;
                  Site code:&lt;input type="text" name="site_code"&gt;&lt;br&gt;
                  Site name: &lt;input type="text" name="site_name"&gt;&lt;br&gt;
                  Address: &lt;input type="text" name="site_address"&gt;&lt;br&gt;
                  City:&lt;br&gt;
                  Postal code: &lt;input type="text" name="site_postalcode"&gt;&lt;br&gt;
                  Province: &lt;select name="province"&gt;&lt;/select&gt;&lt;br&gt;
                  Country: &lt;select name=”country”&gt;
                  &lt;?php while (($row = mysqli_fetch_row($country_results)) != null){ ?&gt;
                  &lt;option value=”&lt;?php echo $row[‘country’];?&gt;&lt;/option&gt;
              &lt;?php } ?&gt;
                  &lt;/select&gt;&lt;br&gt;
  
  
              &lt;p&gt;Site Contact Info&lt;/p&gt;
              Site contact name: &lt;input type="text" name="site_contact_name"&gt;&lt;br&gt;
              Phone number 1: &lt;input type="number" name="site_contact_number1"&gt;&lt;br&gt;
              Phone number 2: &lt;input type="number" name="site_contact_number2"&gt;&lt;br&gt;
              Email address: &lt;input type="email" name="site_contact_email"&gt;&lt;br&gt; 
              &lt;input type="submit"&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>