title: Vertical Menu using mysql wont display data
body: <p>I am by no means an exoert I am just trying to get my head round php and mysql to create a blog for our animal rescue centre. I am trying to create a verticle menu using a 'title' and 'link' field stored in a mysql database. I came across this site whilst searching for help with another problem and have ended up on here for help on a lot of things. This is the first time I have posted though so I apologize if I have done it in the wrong place or anything. The code i have at the moment after a day and a half messing with it and reading tutorials.</p>
  
  <pre><code>&lt;?php include 'database-connection.php' ?&gt;
  &lt;div id="left"&gt;
  &lt;div class="left-menu"&gt;
  &lt;h3&gt;Blog Posts&lt;/h3&gt;
  &lt;ul&gt;
  &lt;?php
  $query = mysql_query("SELECT * FROM animalrescuediary WHERE type = 'Blog-Posts' ")
  or die(mysql_error()); 
  WHILE($rows = mysql_fetch_array($query));
  echo "&lt;li&gt;&lt;a href='";
  echo $rows['link'];
  echo "'&gt;";
  echo $rows['title'];
  echo "&lt;/a&gt;&lt;/li&gt;";
  ?&gt;
  &lt;/ul&gt;
  &lt;/div&gt;&lt;!-- left-menu --&gt;
  &lt;/div&gt;&lt;!-- left --&gt;
  </code></pre>
  
  <p>This is not chucking out any error text but it is not dispaying the menu. It's the lack of error codes that has made it hard to search for an answer. Thank you in advance for any help with this.</p>