title: How can I get the values from the URL and using that value fetch data from the database
body: <p>I have made a custom link that will redirect the users to view other users profile.</p>
  
  <p>How can I get the value of <code>id</code> that is being passed in the custom link on the <code>view_profile.php</code> page and pull the data from DB </p>
  
  <pre><code>echo'&lt;a name="view_profile" href="view_profile.php?id='.$query_row['id'].'"&gt;'.'&lt;img src="'.$query_row["profilepics"].'" height="50px" width="50px" class="img-circle"/&gt;'." ".'&lt;strong&gt;'.$query_row["firstname"]." ".$query_row["lastname"].'&lt;/strong&gt;&lt;/a&gt; ';associated with it?
  </code></pre>