I am trying to create an output table in PHP after extracting data from a database. The fourth column needs to be a hyperlink. I have used the following code. But I am getting error in regards to the hyperlink section. Could you please let me know how to rectify it?
Thanks!
echo"<tr>
<td>".$row["name"]."</td>
<td>".$row["age"]."</td>
<td>".$row["sex"]."</td>
<td><a href= "https://weblink.com/path1/path2/test.php?name='.urlencode($row["name"]).'&age='.urlencode($row["age"]).'">Click for next</a></td>
</tr>";
\"inside the string, the quotes that surrounds the link..urlencode