title: php table display data, edit, delete
body: <p>I have spent the entire day trying to get this code snippet to work:</p>
  
  <pre><code>    &lt;?php
              include("conn.php");
  
  $result = mysql_query("SELECT * FROM users");
    echo "&lt;table border=\"0\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" id=\"product-       table\"&gt;
    &lt;tr&gt;
    &lt;th class=\"table-header-check\"&gt;&lt;a id=\"toggle-all\" &gt;&lt;/a&gt; &lt;/th&gt;
    &lt;th class=\"table-header-repeat line-left\" &gt;&lt;a href=\"\"&gt;User ID&lt;/a&gt;&lt;/th&gt;
    &lt;th class=\"table-header-repeat line-left\"&gt;&lt;a href=\"\"&gt; Username&lt;/a&gt;&lt;/th&gt;
    &lt;th class=\"table-header-repeat line-left\"&gt;&lt;a href=\"\"&gt;Firstname&lt;/a&gt;&lt;/th&gt;
    &lt;th class=\"table-header-repeat line-left\"&gt;&lt;a href=\"\"&gt;Lastname&lt;/a&gt;&lt;/th&gt;
    &lt;th class=\"table-header-repeat line-left\"&gt;&lt;a href=\"\"&gt;Email&lt;/a&gt;&lt;/th&gt;
    &lt;th class=\"table-header-repeat line-left\"&gt;&lt;a href=\"\"&gt;Registration Date&lt;/a&gt;&lt;/th&gt;
    &lt;th class=\"table-header-options line-left\"&gt;&lt;a href=\"\"&gt;Options&lt;/a&gt;&lt;/th&gt;
     &lt;/tr&gt;";
    while ($row = mysql_fetch_array($result)) {
  
     echo "&lt;tr&gt;";
     echo "&lt;td&gt;"."&lt;input  type=\"checkbox\"/&gt;&lt;/td&gt;";
      echo "&lt;td&gt;" . $row['user_id'] . "&lt;/td&gt; ";
      echo "&lt;td&gt;" . $row['username'] . "&lt;/td&gt;";
      echo "&lt;td&gt;" . $row['first_name'] . "&lt;/td&gt;";
      echo "&lt;td&gt;" . $row['last_name'] . "&lt;/td&gt;";
       echo "&lt;td&gt;" . $row['email'] . "&lt;/td&gt;";
   echo "&lt;td&gt;" . $row['registration_date'] . "&lt;/td&gt;";
   echo "&lt;td class=\"options-width\"&gt;".
                  "&lt;a href=\"\" title=\"Edit\" class=\"icon-1 info-tooltip\"&gt;              &lt;/a&gt;".
                  "&gt;&lt;a href="delete.php?id=' . $row['id'] . '"class=\"icon-2 info-tooltip\"&gt;&lt;/a&gt;".
                  "&lt;a href=\"\" title=\"Save\" class=\"icon-5**strong text**info-tooltip\"&gt;       &lt;/a&gt;".
                  "
                  &lt;/td&gt;";
    echo "&lt;/tr&gt;";
    }
  
  
       ?&gt;
  </code></pre>
  
  <p>What im trying to do is pull my users into an html table, and then make it so i can edit/delete them from the url string ex.