writing to mySQL with html and php : <p>Have been using these codes and not sure why they wont write to my database. Can't access the servers tonight but this is terribly irritating please help!</p>

<p>HTML:</p>

<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
&lt;html lang="en"&gt;
&lt;head&gt;

  &lt;!-- Basic Page Needs
  –––––––––––––––––––––––––––––––––––––––––––––––––– --&gt;
  &lt;meta charset="utf-8"&gt;
  &lt;title&gt;Collecting Data for Database&lt;/title&gt;
  &lt;meta name="description" content=""&gt;
  &lt;meta name="author" content="AleR"&gt;

  &lt;!-- Mobile Specific Metas
  –––––––––––––––––––––––––––––––––––––––––––––––––– --&gt;
  &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;

  &lt;!-- FONT
  –––––––––––––––––––––––––––––––––––––––––––––––––– --&gt;
  &lt;link href="http://fonts.googleapis.com/css?family=Raleway:400,300,600" rel="stylesheet" type="text/css"&gt;

  &lt;!-- CSS
  –––––––––––––––––––––––––––––––––––––––––––––––––– --&gt;
 &lt;link rel="stylesheet" href="normalize.css"&gt;
  &lt;link rel="stylesheet" href="skeleton.css"&gt;
     &lt;link rel="stylesheet" href="backbone.css"&gt;
     &lt;link rel="stylesheet" href="asspage.css"&gt;
&lt;style&gt;
    #container{
        width:90%;
        margin: 40px auto 0 auto;
        
    }    
    h1   {color:lightgreen;}
    
&lt;/style&gt;
  
    &lt;style&gt;
body {background-color:lightgreen; color: green;}
h1   {color: lightgreen;}
p    {color: lightgreen;}
        header {
            margin-top: -25px;
            margin-left: -500px;
            height: 100px;
            width: 10000px;
            background-color: green;
        }
        
        nav{background-color: green;    height: 100%;
            width: 100%;}
        aside{background-color: green;    height: 100%;
            width: 100%;}
        
        
&lt;/style&gt;
&lt;/head&gt;
    &lt;header&gt;&lt;/header&gt;
    &lt;nav&gt;&lt;/nav&gt;
    &lt;aside&gt;&lt;/aside&gt;
&lt;body&gt;

  &lt;!-- Primary Page Layout
  –––––––––––––––––––––––––––––––––––––––––––––––––– --&gt;

&lt;div id="container" align="center"&gt;
&lt;form action="final.php" method="post"&gt;
  &lt;div class="row"&gt;
    &lt;div class="six columns"&gt;
      &lt;label for="Age"&gt;Category&lt;/label&gt;
      &lt;input class="u-full-width" type="text" name="Category"&gt;
        
        &lt;label for="Qualifications"&gt;Brand&lt;/label&gt;
      &lt;input class="u-full-width" type="text" name="Brand"&gt;
        
               &lt;label for="Experience"&gt;Condition&lt;/label&gt;
      &lt;input class="u-full-width" type="text" name="Condition"&gt;
        

        
       
    &lt;/div&gt;
    
  &lt;/div&gt;
   
  &lt;form action="final.php" method="post"&gt;
  &lt;input class="button-primary" type="submit" value="Submit"&gt;
&lt;/form&gt;
    &lt;/div&gt;
  
    
    
	&lt;/body&gt;
&lt;/html&gt;</code></pre>
</div>
</div>
</p>

<p>This next snippet is the PHP that is supposed to send information to my database!</p>

<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
&lt;html lang="en"&gt;
&lt;head&gt;

  &lt;!-- Basic Page Needs
  –––––––––––––––––––––––––––––––––––––––––––––––––– --&gt;
  &lt;meta charset="utf-8"&gt;
  &lt;title&gt;Audio Search&lt;/title&gt;
  &lt;meta name="description" content=""&gt;
  &lt;meta name="author" content="AlexR"&gt;

  &lt;!-- Mobile Specific Metas
  –––––––––––––––––––––––––––––––––––––––––––––––––– --&gt;
  &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;

  &lt;!-- FONT
  –––––––––––––––––––––––––––––––––––––––––––––––––– --&gt;
  &lt;link href="http://fonts.googleapis.com/css?family=Raleway:400,300,600" rel="stylesheet" type="text/css"&gt;

  &lt;!-- CSS
  –––––––––––––––––––––––––––––––––––––––––––––––––– --&gt;
 &lt;link rel="stylesheet" href="normalize.css"&gt;
  &lt;link rel="stylesheet" href="skeleton.css"&gt;
    &lt;link rel="stylesheet" href="backbone.css"&gt;
&lt;style&gt;
    #container{
        width:90%;
        margin: 40px auto 0 auto;
        
    }    
    
    background{
        color: green;
    }
    
    
&lt;/style&gt;
    
    &lt;style&gt;
body {background-color:lightgreen;}
h1   {color:blue;}
p    {color:green;}
&lt;/style&gt;
    
  

&lt;/head&gt;
&lt;body&gt;

  &lt;!-- Primary Page Layout
  –––––––––––––––––––––––––––––––––––––––––––––––––– --&gt;


    
    &lt;div id="container"&gt;
&lt;form&gt;
  &lt;div class="row"&gt;
    &lt;div class="six columns"&gt;
      &lt;p&gt;Thank you for your name and e-mail.&lt;/p&gt;
   
      &lt;?php
        
       DEFINE('DB_USERNAME', '*****');
    DEFINE('DB_PASSWORD', '*****');
    DEFINE('DB_HOST', 'localhost');
    DEFINE('DB_DATABASE', '*****');
       
        
      echo "here!";  
        
        
        
          if (isset($_REQUEST['Age'])){
              $Age = $_REQUEST['Age'];
              $Qualifications = $_REQUEST['Qualifications'];
              $Experience = $_REQUEST['Experience'];
            
              
              #echo "Thanks for your submission.";
            $dbc = mysqli_connect(DB_HOST,DB_USERNAME,DB_PASSWORD,DB_DATABASE) OR die ('Could not connect to MySQL: '.mysqli_connect_error());
            $q = "INSERT INTO `FinalForm`(`Age`, `Qualifications`, `Experience`) VALUES ('$Age','$Qualifications','$Experience' )"; 
              #$q = "INSERT INTO `EmailList1`(`firstName`, `lastName`, `eMail`) VALUES ('Joseph','Wales','jwales@sjfc.edu')";
              $r = mysqli_query($dbc,$q);
              
              # ^^^ Search submit results window
              
              if ($r){echo "Results below";} else {echo "Your search found zero results";};
              
              
              
}
              
              
              
              
              
          
          
          
          
          
          ?&gt;
         &lt;/div&gt;
      &lt;div&gt;  
          
      
      
 
    
  
    &lt;/div&gt;
	
&lt;/html&gt;</code></pre>
</div>
</div>
</p>

<p>This snippet is what is supposed to retrieve and display my database data, not working!</p>

<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
&lt;html lang="en"&gt;
&lt;head&gt;

  &lt;!-- Basic Page Needs
  –––––––––––––––––––––––––––––––––––––––––––––––––– --&gt;
  &lt;meta charset="utf-8"&gt;
  &lt;title&gt;Audio Shop Data Retrieval&lt;/title&gt;
  &lt;meta name="description" content=""&gt;
  &lt;meta name="author" content="AlexR"&gt;

  &lt;!-- Mobile Specific Metas
  –––––––––––––––––––––––––––––––––––––––––––––––––– --&gt;
  &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;

  &lt;!-- FONT
  –––––––––––––––––––––––––––––––––––––––––––––––––– --&gt;
  &lt;link href="http://fonts.googleapis.com/css?family=Raleway:400,300,600" rel="stylesheet" type="text/css"&gt;

  &lt;!-- CSS
  –––––––––––––––––––––––––––––––––––––––––––––––––– --&gt;
 &lt;link rel="stylesheet" href="normalize.css"&gt;
  &lt;link rel="stylesheet" href="skeleton.css"&gt;
    &lt;link rel="stylesheet" href="backbone.css"&gt;
&lt;style&gt;
    #container{
        width:90%;
        margin: 40px auto 0 auto;
        
    }    
    h1   {color:lightgreen;}
    
&lt;/style&gt;
  
    &lt;style&gt;
body {background-color:lightgreen; color: green;}
h1   {color: lightgreen;}
p    {color: lightgreen;}
        header {
            margin-top: -25px;
            margin-left: -500px;
            height: 100px;
            width: 10000px;
            background-color: green;
        }
&lt;/style&gt;
    
&lt;/head&gt;
    &lt;header&gt;&lt;h1&gt;Audio Supply Retrieval&lt;/h1&gt;&lt;/header&gt;
&lt;body&gt;

  &lt;!-- Primary Page Layout
  –––––––––––––––––––––––––––––––––––––––––––––––––– --&gt;


    
    &lt;div id="container" align="center"&gt;
&lt;form&gt;
  &lt;div class="row"&gt;
    &lt;div class="six columns"&gt;
   
      &lt;?php
        
       DEFINE('DB_USERNAME', '*****');
    DEFINE('DB_PASSWORD', '*****');
    DEFINE('DB_HOST', 'localhost');
    DEFINE('DB_DATABASE', '*****');
       
    
              
            $dbc = mysqli_connect(DB_HOST,DB_USERNAME,DB_PASSWORD,DB_DATABASE) OR die ('Could not connect to MySQL: '.mysqli_connect_error());
            $q = "SELECT * FROM `FinalForm` ORDER BY `Category` ASC";
              $r=@mysqli_query($dbc,$q);
                
            if ($r) {
                echo '&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;b&gt;Age&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;Qualifications&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;Experience&lt;/b&gt;&lt;/td&gt;&lt;/td&gt;';
                while($row=mysqli_fetch_array($r,MYSQLI_ASSOC)){
                    echo "&lt;tr&gt;&lt;td&gt;$row[NameID]&lt;/td&gt;&lt;td&gt;$row[Age]&lt;/td&gt;&lt;td&gt;$row[Qualifications]&lt;/td&gt;&lt;td&gt;$row[Experience]&lt;/td&gt;&lt;/tr&gt;";
                }
       
                echo "&lt;/select&gt;";
                };
              echo "&lt;p&gt;";
               
              
              
          
          ?&gt;
         &lt;/div&gt;
      &lt;div&gt;  
          
      
      
 
    
  
    &lt;/div&gt;
	&lt;/body&gt;
&lt;/html&gt;</code></pre>
</div>
</div>
</p>
