Hi guys.
i am stuck i have a page called view.php
this views a list of emails on a database
i am trying to add a delete link at the side of each email but i keep getting an error
error message
unexpected ‘href’ (T_STRING), expecting ‘,’ or ‘;’
here is the code where its going wrong …
$sqli = "SELECT * FROM data";
$result = $conn->query($sqli);
if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_assoc()) {
echo "E Mail Database List <br><br>";
if($row["email"]==""){
echo "E Mail";} else {
echo "E Mail :" .$row["email"]."
echo "<a href="delete.php?id={$row['id']}">Delete row</a>;
<br><br>";}
}
}
$conn->close();