Deleting files in sgl database with php scrypte

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).


include ‘…/’;
//include ‘…/’;
include ‘…/’;
$link = mysqli_connect(‘', '’, ‘’);
$select = “SELECT * FROM employee.employees”;
$result = mysqli_query($link, $select);
if (!$result)
$error = ‘Error with reading employees.’;
include ‘…/error.html.php’;

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

include 'employees.html.php';

//deleteting employees
if (isset($_POST[‘action’]) and $_POST[‘action’] == ‘delete’)
include ‘…/’;
$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’;
include ‘employees.html.php’;


<?php include ‘…/’; ?>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN””>
<html xmlns=“” xml:lang=“pl” lang=“pl”>
<meta http-equiv=“Content-Type” content=“text/html; charset=utf-8” />

            &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;?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;?php endforeach; ?&gt;


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.