Can we use more than one ID for hyperlink in PHP

Normally we use hyperlink from landing page to go to next page as follow

while ($row=mysql_fetch_assoc($records)){
  echo "<tr>";
  echo "<td>".$row['user_id']."</td>";
  echo "<td>".$row['location']."</td>";

  **echo "<td> <a href='view.php?user_id=". $row['user_id']."'>VIEW</a></td>";**       

The Thing which I want to learn from this forum is that can we used more than one field for this purpose or not ? For example

  **echo "<td><a href='view.php?user_id=". $row['user_id']."' and location=". $row['location']."'>VIEW</a></td>";**    

The usual way to have multiple parameters in a query string is to separate them with an ampersand (&).


So in the above we are looking at a user with the ID of 321 with the location set to ca.

1 Like