title: Develop Results View Page in PHP/MySQL
body: <p>This is probably going to be quite an easy question for everyone, and I have tried following and understanding tutorials, but I just cant get my head around it!!</p>
  
  <p>Ok so for University me and my peers are creating a student assesment system, my task is to create a results view page.</p>
  
  <p>Basically I have been given a file called index.php which has a template background with a header and footer thats just looks like a normal web page. I need to be able to display results from a table from a database (I dont have yet but can create a test to test it) that has data into a certain position of that index.php page.</p>
  
  <p>I have phpadmin installed and have tried creating a test database and table to insert in, but it just doesnt work when i follow tutorials like this one <a href="http://www.siteground.com/tutorials/php-mysql/display_table_data.htm" rel="nofollow">http://www.siteground.com/tutorials/php-mysql/display_table_data.htm</a> , i just cant understand it, which im sure if my fault!!!</p>
  
  <p>Someone else is writing the query's ill need, but firstly im just trying to understand how I even do this, and how i tell it to go to the index.php page, and where to place the table on that page.</p>
  
  <p>This is the php code for the index.php file if i open it in notepad ++</p>
  
  <pre><code>&lt;?php
  /*use template to create pages*/
  include('templates/header.html');
  include('templates/topMenu.html');
  ?&gt;
  
  
  &lt;div id="contentwrap"&gt; 
  
  &lt;div id="content"&gt;
  
  &lt;div style="clear: both;"&gt; &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;?php
  require_once('templates/sidebarStudent.php');
  ?&gt;
  
  &lt;div style="clear: both;"&gt; &lt;/div&gt;
  
  &lt;/div&gt;
  
  &lt;?php
  include('templates/footer.html'); 
  ?&gt;
  </code></pre>
  
  <p>So my question is do I just enter some code somewhere in this index.php file that tells it where to get the database and table from? and how do I tell it where to position the table in the page, or do I have to create seperate php files for this?</p>
  
  <p>Please help! :(</p>