the problem is on backoffice that add/delete reservations:
i think it has this for deleting the file on the begining of the backoffice page
Code: Select all
<?php include("inc.apagar.php"); ?>
Code: Select all
<?php
if ((isset($_GET['del'])) && ($_GET['del'] != "")) {
$deleteSQL = sprintf("DELETE FROM ".$tabela." WHERE id=%s",
GetSQLValueString($_GET['del'], "int"));
mysql_select_db($database_conexao_bd, $conexao_bd);
$Result1 = mysql_query($deleteSQL, $conexao_bd) or die(mysql_error());
$deleteGoTo = $main_pag;
header(sprintf("Location: %s", $deleteGoTo));
}
?>
Code: Select all
<a href="#"><img onClick="<?php echo "'".$actual_pag."','".$tipo_pag."',".$row_agenda['id'].",'".$row_titulo_imovel['nome']; ?>" src="imagens/delete.png" alt="Apagar" width="16" height="16" border="0" title="Apagar"></a>