title: CID not showing on PHP/MySQL
body: <p>im attempting to create a link which has categoryName and categoryDescription. Once i click on the link which would take me to the category, the cid on the url does not show up, where it is suppose to have something like cid=1.</p>
  
  <p>here is the code what has been written...</p>
  
  <pre><code>&lt;div id="content"&gt;
  
      &lt;?php
  
          include_once("connection.php");
  
          //category area
          $sql = "SELECT * FROM ecommerce_category_table ORDER BY categoryName ASC";
          $result = mysql_query($sql) or die(mysql_error());
          $categories = "";
  
          if (mysql_num_rows($result) &gt; 0) {
              while ($row = mysql_fetch_assoc($result)) {
                  $id = $row['$id'];
                  $name = $row['categoryName'];
                  $description = $row['categoryDescription'];
                  $categories .= "&lt;a href='view_category.php?cid=".$id."' class='cat_link'&gt;".$name." - ".$description."&lt;/a&gt;";
              }
  
              echo $categories;
  
          } else {
              echo "&lt;p&gt;There are no categories avaliable yet.&lt;/p&gt;";
          }
  
  
      ?&gt;
  
  &lt;/div&gt;&lt;!-- end content --&gt;
  </code></pre>