Deleting files in sgl database with php scrypte

Hi,
I do project according real fine Kevin Yank’sbook about cms.
Although I can have done it with the book examples (it means it works in my comp), now when I try to repeat some techniques I failed and do not code deleting files in table in my sql db. In folder I have one controller (index.php) and template (employees.html.php).

Codes:

index.php:
<?php
include ‘…/magicquotes.inc.php’;
//include ‘…/helpers.inc.php’;
include ‘…/db.inc.php’;
//EMPLOYEES
$link = mysqli_connect(‘', '’, ‘’);
$select = “SELECT * FROM employee.employees”;
$result = mysqli_query($link, $select);
if (!$result)
{
$error = ‘Error with reading employees.’;
include ‘…/error.html.php’;
exit();
}

while ($row = mysqli_fetch_array($result))
{
    $employees[] = array('id' =&gt; $row['id'], 'name' =&gt; $row['name'], 'lastname' =&gt; $row['lastname']);
}

include 'employees.html.php';
exit();

//deleteting employees
if (isset($_POST[‘action’]) and $_POST[‘action’] == ‘delete’)
{
include ‘…/db.inc.php’;
$link = mysqli_connect(‘', '’, ‘’);
$idi = mysqli_real_escape_string($link, $_POST[‘id’]);
$sql = “DELETE FROM employees WHERE id=‘$idi’”;
$result = mysqli_query($link, $sql);
if ($result)
{
$error = 'Error in deleting employee: ’ . mysqli_error($link);
include ‘error.html.php’;
exit();
}
include ‘employees.html.php’;
exit();
}

?>

employees.html.php:
<?php include ‘…/helpers.inc.php’; ?>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN”
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
<html xmlns=“http://www.w3.org/1999/xhtml” xml:lang=“pl” lang=“pl”>
<head>
<title>Employees</title>
<meta http-equiv=“Content-Type” content=“text/html; charset=utf-8” />
</head>
<body>
<h1>Employees:</h1>

        &lt;table&gt;
            &lt;tr&gt;&lt;th&gt;Name -&lt;/th&gt;&lt;th&gt;Lastname -&lt;/th&gt;&lt;th&gt;Option&lt;/th&gt;&lt;/tr&gt;&lt;/table&gt;
            &lt;?php foreach ($employees as $employee): ?&gt;
            &lt;form action="?" method="post"&gt;
			&lt;div&gt;
			&lt;?php htmlout($employee['name']); ?&gt;  
            &lt;input type="hidden" name="id" value="&lt;?php echo $employee['id']; ?&gt;"/&gt;
            &lt;input type="submit" name="action" value="delete"/&gt;
			&lt;/div&gt;
			&lt;/form&gt;
            &lt;?php endforeach; ?&gt;
        
    
&lt;/body&gt;

</html>

Could you help me what I do wrong?

Well, the fact that you dont have any PHP code in there to delete an employee?

Just right, I can not delete any employee in table employees in database employee.