title: passing variables in query string
body: <pre><code>$courses_taken=$row['course_id'];
  &lt;a href="course.php?course_id=$courses_taken"&gt;&lt;/a&gt;
  </code></pre>
  
  <p>As you can see from above code, i'm taking a variable and passing it in query string, but this method is wrong.</p>
  
  <p>How can i pass a variable in query string, as each user will have opted for different courses, thus they will have different course_id.</p>
  
  <p>Is there a way to do it?</p>