My Problem is that when i try to delete a database record over this link:
<?php
echo("<a href=\"./termine.php?action=edit&id=$id\">");
?>
<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span>
<?php
echo("</a>");
?>
its will be reload the page and the page is white. Refer to the snapshot below.
The action code:
<?php
if (isset($_GET['action']) and $_GET['action']=="edit") {
$editId = $_GET['id'];
$edit = $db->prepare("UPDATE TABLE_NAME SET EDIT_FIELD = '100' WHERE ID = '" .$editId."' LIMIT 1");
}
?>