title: Create html table by fetching data from database
body: <p>I want to display values in a html table by fetching data from database, in each row of a table i want to show 4 columns
  I want to display it like this => <a href="http://buyitnaija.com/index.php" rel="nofollow">http://buyitnaija.com/index.php</a> but it is actually displaying <a href="http://buyitnaija.com/index1.php" rel="nofollow">http://buyitnaija.com/index1.php</a></p>
  
  <p>so far I have done this :</p>
  
  <pre><code>$category = mysql_query("SELECT * FROM category LIMIT 0, 4");
  while($row = mysql_fetch_array($category))
  {
  $cat_name = $row['Category'];?&gt;
  &lt;table class="white" width="60%" align="center"&gt;
  &lt;tr&gt;
  &lt;td style="font-size:18px; color:#FFFFFF"&gt;
  &lt;a href="&lt;?=$_SERVER['PHP_SELF']?&gt;?cat=&lt;?echo $cat_name;?&gt;"&gt;&lt;? echo $cat_name;?&gt;&lt;/a&gt;
  &lt;/td&gt;
  &lt;?}?&gt;
  &lt;/tr&gt;
  &lt;/table&gt; 
  </code></pre>