title: Dynamic Links in php and mysql
body: <p>I would like to pass information from one page to the next using dynamic links.  For example, when a person clicks</p>
  <pre><code>&lt;a href =&quot;glossary.php&gt;A&lt;/a&gt;
  </code></pre>
  <p>A will be saved into a variable and passed to glossary.php. Where the following Mysql query will be on glossary.php</p>
  <pre><code>letter_query = &quot;SELECT * FROM Glossary WHERE Letter =$clickedletter;
  letter_id = mysql_query($letter_query) or die(mysql_error);
  $row = mysql_fetch_assoc($letter_id);
  </code></pre>
  <p>I have the following MySQL table:</p>
  <blockquote>
  <p>Glossary (Glossaryid, Letter, Word, Definition, userid).</p>
  <p>Here's an example of the information that would be stored: Glossaryid =&gt; 01, Letter =&gt; B, Word =&gt; Ball, Definition =&gt; A round thing people use to play with, but some get paid to play with it.</p>
  </blockquote>
  <p>I have a page containing HTML with the links in alphabetical order, i.e A B C D E F G H I, etc.  When a person clicks on a link I would like to display the all the words starting with clicked letter onto a page called glossary.php.</p>