<td>{$row['date']}</td>
<td><a href="edit.php?applicationid=<?php echo $data['applicationid']; ?>">Edit</a></td>
</tr>";
In 2nd line I am getting this error: Parse error: syntax error, unexpected identifier "edit", expecting "," or ";"
CodePudding user response:
This appears to be part of a string literal, and you're ending the listeral with the "
in href="
. You need to escape that or use single quotes.
Also, you don't use <?php echo $variable ?>
to embed a variable in a string, you use {$variable}
, like yo udid with $row['date']
echo "<td>{$row['date']}</td>
<td><a href='edit.php?applicationid={$data['applicationid']}'>Edit</a></td>
</tr>";