Exemplo n.º 1
0
<?php

include 'db_connection.php';
include 'classes/employee.php';
$connection = new db_connection();
$team = $_POST['team'];
$where = stripslashes($_POST['where']);
/*Transaction status*/
$status = 'ok';
if (!employee::deleteTeam($connection, $team, $where)) {
    //Error
    $error = $connection->lastError();
    $status = "Error {$error['errno']}: {$error['error']}";
}
/*XML transaction result.*/
header('Content-Type: text/xml');
echo '<transaction>
<status>' . $status . '</status>
</transaction>
';
$connection->close();