I have a table that draws information from my MYSQL database. I have a button that I want to echo the id of the row of the information I draw. I can echo all the information to the table but for some reason no idea how to get the information into the URL
I want to use it in the next page in the GET function for additional data being drawn
echo "<td> <a href='dashboard.php?id="<php echo[id], ?>"'><button>Next</button></a> </td>";
I am receiving this error:
Parse error: syntax error, unexpected 'echo' (T_ECHO), expecting ',' or ';' in
The unexpected Echo they referring to I think is the second one as the first echo on previous rows in my table I have no issues
Update:
I have this sql string:
$sql = "SELECT * FROM new_case WHERE status = 'Active'";
In the table I have one row as below and it shows the id of that row.
echo "<td>" . $row['id'] . "</td>";