Ponelo así :
<?php
include('includes/db-cnx.php');
session_start();
?>
<html>
<head>
<meta content="utf-8">
</head>
<body>
<table width="60%" height="30%" border="1" align="center" style="top:500px" cellpadding="0">
<font color="#CCCCCC"
<?php
function quitar($mensaje) {
...... y todo lo demás.